Skip to content

Invert default logging behavior for A/B test#11862

Merged
aduth merged 3 commits intomainfrom
aduth-ab-test-default-should-log
Feb 10, 2025
Merged

Invert default logging behavior for A/B test#11862
aduth merged 3 commits intomainfrom
aduth-ab-test-default-should-log

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Feb 10, 2025

🛠 Summary of changes

Updates the behavior of AbTest to not include bucket assignments in logs if should_log is not defined.

Previously, if a test did not define should_log, the A/B test assignment for that test would be included in every application event. To avoid unnecessary noise in unrelated analytics events, this pull request proposes to change the default from an opt-out to an opt-in.

Existing tests already assign should_log and should be unimpacted by these changes.

📜 Testing Plan

Verify build passes.

Optionally, delete the should_log option for one of the existing test configuration and verify with make watch_events that unrelated analytics events do not include the A/B test assignment.

changelog: Internal, Analytics, Invert default logging behavior for A/B test
@aduth aduth requested a review from matthinz February 10, 2025 13:30
@aduth aduth merged commit a2eb0ba into main Feb 10, 2025
2 checks passed
@aduth aduth deleted the aduth-ab-test-default-should-log branch February 10, 2025 16:59
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.

3 participants