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(replay): Fix duration due to incorrect LCP endtimestamp #44842

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Feb 17, 2023

Due to 7.38.0 (getsentry/sentry-javascript#7187) LCP endtimestamp was being incorrectly recorded. The end timestamp is used in our UI to calculate duration at the moment, so LCP with high values are causing our calculated duration to be incorrect. Ignore LCP in the duration calculation as a temporary fix. Ideally we would get SDK timestamps correct so that we only have the event duration as the source of truth for duration.

Due to 7.38.0 (getsentry/sentry-javascript#7187) LCP endtimestamp was being incorrectly recorded. The end timestamp is used in our UI to calculate duration at the moment, so LCP with high values are causing our calculated duration to be incorrect. Ignore LCP in the duration calculation as a temporary fix. Ideally we would get SDK timestamps correct so that we only have the event duration as the source of truth for duration.
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 17, 2023
@@ -163,7 +163,7 @@ export function breadcrumbFactory(
label: error['error.type'].join(''),
eventId: error.id,
groupId: error['issue.id'] || 1,
groupShortId: error.issue || 'POKEDEX-4NN',
Copy link
Member Author

Choose a reason for hiding this comment

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

Don't think this is supposed to be here cc @ryan953

@billyvg billyvg marked this pull request as ready for review February 17, 2023 18:53
@billyvg billyvg requested a review from a team as a code owner February 17, 2023 18:53
@billyvg billyvg merged commit eb3773a into master Feb 17, 2023
@billyvg billyvg deleted the fix-replay-exclude-lcp-from-duration branch February 17, 2023 19:19
@github-actions github-actions bot locked and limited conversation to collaborators Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants