Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move writekey to body #817

Merged
merged 5 commits into from
Jan 6, 2023
Merged

move writekey to body #817

merged 5 commits into from
Jan 6, 2023

Conversation

wenxi-zeng
Copy link
Contributor

@wenxi-zeng wenxi-zeng commented Nov 30, 2022

  • updated gradle and dependencies versions
  • there are unit tests failed because of new robolectric version, will have a followup pr to fix the impacted tests. the impacted tests are marked as ignore for now
  • move writeKey from auth header to batch body
  • add instanceId to context object

@@ -139,6 +142,7 @@ static synchronized AnalyticsContext create(
analyticsContext.putNetwork(context);
analyticsContext.putOs();
analyticsContext.putScreen(context);
analyticsContext.putTelemetry();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to putInstanceId() ??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yah. I thought about this too. but seems like the "put" functions are grouped by functionality (network, os, app, library, etc). the instanceId is added specifically for telemetry. we might have more fields to support telemetry in the future. thus, thought it's better to put it into a new group

@wenxi-zeng wenxi-zeng merged commit 77653e0 into master Jan 6, 2023
@wenxi-zeng wenxi-zeng deleted the wenxi/move-writekey-to-body branch January 6, 2023 19:52
@wenxi-zeng wenxi-zeng mentioned this pull request Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants