-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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(react-router): Add sentryHandleRequest
#15787
base: develop
Are you sure you want to change the base?
Conversation
const activeSpan = getActiveSpan(); | ||
if (activeSpan) { | ||
const rootSpan = getRootSpan(activeSpan); | ||
rootSpan.setAttribute(SENTRY_PARAMETERIZED_ROUTE, parameterizedPath); |
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.
Is there a reason we don't update the name of the root span here directly?
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.
I tried this, but it got overwritten somehow
I don't understand why http.route gets overridden with |
WIP
sentryHandleRequest
method that instruments the default exportedhandleRequest
inentry.server.tsx
GET *
)preprocessEvent
callback on the node client for updating thehttp.route
attribute and the transaction namecloses #15517