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

ref(apm): Simplify Tracing._addOffsetToSpan #2477

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

rhcarvalho
Copy link
Contributor

@rhcarvalho rhcarvalho commented Mar 9, 2020

It is not very clear what the offset in the Span data is used for.
https://github.com/getsentry/sentry-javascript/pull/2474/files#diff-a17621c348418aca8860e07b637d22a4R392

Nonetheless, reading through #2474, I noticed that Tracing._addOffsetToSpan is more simply written as a call to performance.now(), without touching entries in the Performance object.

@rhcarvalho rhcarvalho requested a review from HazAT March 9, 2020 11:23
@rhcarvalho rhcarvalho requested a review from kamilogorek as a code owner March 9, 2020 11:23
@getsentry-bot
Copy link
Contributor

Warnings
⚠️ Please add a changelog entry for your changes.
Messages
📖

@sentry/browser bundle gzip'ed minified size: (ES5: 16.7412 kB) (ES6: 15.7549 kB)

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against 0771530

Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

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

How could I miss that 😅
source

@rhcarvalho
Copy link
Contributor Author

Errors in BrowserStack apparently unrelated to the changes https://travis-ci.com/getsentry/sentry-javascript/jobs/295994182.

@rhcarvalho rhcarvalho merged commit f8e8dc8 into master Mar 9, 2020
@rhcarvalho rhcarvalho deleted the rhcarvalho/simpler-offset branch March 9, 2020 14: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