-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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(next): Handle existing root spans for isolation scope #11479
Conversation
const rootSpan = getRootSpan(activeSpan); | ||
|
||
// Verify this is a next span | ||
if (!spanToJSON(rootSpan).data?.['next.route']) { |
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.
this feels like a reasonable starting point here I guess? We should sync this with the (not yet existing) isolation scope integration!
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.
We could also use next.span_name
here as this attribute is added to (I think) almost all spans. Look here
size-limit report 📦
|
…#11479) This updates handling of next.js instrumentation to re-use an isolation scope from a root span. This should ensure we have consistent isolation scopes, no matter if next.js auto creates spans or not.
This updates handling of next.js instrumentation to re-use an isolation scope from a root span.
This should ensure we have consistent isolation scopes, no matter if next.js auto creates spans or not.