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

fix(android): use process death time instead of current time for AppExit timestamp #954

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

abhaysood
Copy link
Contributor

@abhaysood abhaysood commented Jul 30, 2024

Summary

The time at which the AppExit event is collected is not useful. We're more interested in the time at which the app actually exited. This PR uses the app exit time as the AppExit event timestamp instead of the time at which the event was collected.

This also fixes #953, a related issue in session replay, where session duration for sessions with app exit event was incorrect.

The time at which the AppExit event is collected is not useful.
We're more interested in the time at which the app actually exited.

This also fixes a related issue in session replay where
session duration is calculated based on the time of the
last event. `AppExit` is typically the last event for a
session and using current time as it's timestamp makes
the session duration incorrect.

fixes: #953
@abhaysood abhaysood added the bug something isn't working label Jul 30, 2024
@abhaysood abhaysood requested a review from detj July 30, 2024 04:10
@abhaysood abhaysood self-assigned this Jul 30, 2024
Copy link

vercel bot commented Jul 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
measure-web-app ⬜️ Ignored (Inspect) Jul 30, 2024 4:10am

@abhaysood abhaysood merged commit 2573871 into main Jul 31, 2024
9 checks passed
@abhaysood abhaysood deleted the fix-session-duration branch July 31, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Session duration is incorrect for sessions with AppExit event
2 participants