-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat: Use new AM SDK API #19041
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,10 +86,10 @@ Sentry.init({ | |
...window.__SENTRY__OPTIONS, | ||
integrations: getSentryIntegrations(hasReplays), | ||
tracesSampleRate, | ||
_experiments: {useEnvelope: true}, | ||
async beforeSend(event) { | ||
return normalizeTransactionName(appRoutes, event); | ||
}, | ||
}); | ||
|
||
Sentry.addGlobalEventProcessor(async event => { | ||
return normalizeTransactionName(appRoutes, event); | ||
Comment on lines
+89
to
+92
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh Interesting 👍 |
||
}); | ||
|
||
if (window.__SENTRY__USER) { | ||
|
Uh oh!
There was an error while loading. Please reload this page.
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