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

Set serverAnonymisation more quickly #689

Merged
merged 4 commits into from
May 30, 2024

Conversation

mscwilson
Copy link
Contributor

@mscwilson mscwilson commented May 9, 2024

For issue #688

Currently, when serverAnonymisation is set in the Emitter, the whole OkHttpNetworkConnection is recreated. This is slow, so there can be a delay in setting the anonymising SP-Anonymous header.

This change sets the serverAnonymisation directly in OkHttpNetworkConnection. Now the opposite is true - some events tracked just before the flag was set can end up with the SP-Anonymous header if they're still being processed when the change is made.

NB: the CI tests for API 30 are currently failing due to flakiness. This is a known problem and will be addressed in a future PR.

@mscwilson mscwilson requested a review from matus-tomlein May 9, 2024 15:40
@mscwilson mscwilson force-pushed the bug/688-delayed_serveranon_header branch from b8369fe to 8971c5e Compare May 10, 2024 12:42
Copy link
Contributor

@matus-tomlein matus-tomlein left a comment

Choose a reason for hiding this comment

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

LGTM!

@mscwilson mscwilson merged commit a811ad9 into release/6.0.4 May 30, 2024
2 of 3 checks passed
@mscwilson mscwilson deleted the bug/688-delayed_serveranon_header branch June 4, 2024 16:22
@mscwilson mscwilson mentioned this pull request Jun 4, 2024
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