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

Log session events unconditionally #4758

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Log session events unconditionally #4758

merged 1 commit into from
Jul 9, 2024

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Jul 9, 2024

Adds a log when an agent emits an event (update, expired, and a few others). We want to get a baseline on how much expiration is occurring in practice, and we want to be able to target that with experiment fixes.

Test Plan

Force early expiration using the short session debug header, verify it results in sending this event.

Screenshot 2024-07-09 at 20 11 02

Copy link

render bot commented Jul 9, 2024

Copy link

github-actions bot commented Jul 9, 2024

Old size New size Diff
6.61 MB 6.61 MB 165 B (0.00%)

Copy link
Contributor

@haileyok haileyok left a comment

Choose a reason for hiding this comment

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

Code looks good, didn't test though since unsure how to set that header. I do see the metadata being added to the statsig event, just not sure how to trigger the expired event.

@gaearon gaearon merged commit 7a47656 into main Jul 9, 2024
6 checks passed
@gaearon gaearon deleted the log-session-events branch July 9, 2024 20:13
haileyok pushed a commit that referenced this pull request Jul 9, 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