-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat: Use new AM SDK API #19041
feat: Use new AM SDK API #19041
Conversation
span.finish(); | ||
span.timestamp = start + sizeInKb / 1000; | ||
transaction.finish(true); | ||
span.finish(start + sizeInKb / 1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@billyvg I made the changes to the file to use the new API.
But this line here in terms of calculating the endTimestamp
for the Span seems very odd.
Time + Filesize? What is the reason behind this?
I suppose you are abusing the Span chart to visualize file size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct
}); | ||
|
||
Sentry.addGlobalEventProcessor(async event => { | ||
return normalizeTransactionName(appRoutes, event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dashed Transaction still goes through event processors and this is the internal workaround for it.
EventProcessors are considered internal. And they work the same as beforeSend
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh Interesting 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes for src/sentry/static/sentry/app/bootstrap.tsx
looks good to me 👍
@dashed Are the percy diffs flakey as always wrt to the performance page? |
@HazAT ah that might be something we'll have to address. 👍 I approved the Percy snapshots. |
Will merge this tomorrow morning |
This bumps the JS SDK to the new beta using the new AM API. getsentry/sentry-javascript#2600