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(profiles): Use the duration reported by the profiler #4058

Merged
merged 6 commits into from
Sep 23, 2024

Conversation

phacops
Copy link
Contributor

@phacops phacops commented Sep 20, 2024

We received values for the duration_ns field like 18446744073709550616 nanoseconds which is 584 years. It's safe to say that's not correct.

duration_ns is a field used for compatibility with our other formats and was reported by the SDK at first then we chose to use the value reported by the transaction. Both of these were wrong.

Since we do reject profiles longer than 30s using the value reported by the profiler itself, we might as well overwrite the value of duration_ns with the one reported by the profiler.

@phacops phacops self-assigned this Sep 20, 2024
@phacops phacops requested a review from a team as a code owner September 20, 2024 23:29
@phacops phacops merged commit aa151d2 into master Sep 23, 2024
23 checks passed
@phacops phacops deleted the pierre/profiles-fix-android-duration-bug branch September 23, 2024 13:44
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