Skip to content

docs(javascript): Align tracing attributes and behavior with v11 - #19456

Merged
msonnb merged 2 commits into
js-v11-docsfrom
ms/update-tracing-span-attributes
Sep 22, 2026
Merged

msonnb merged 2 commits into
js-v11-docsfrom
ms/update-tracing-span-attributes

Conversation

@msonnb

@msonnb msonnb commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Update JavaScript tracing docs and examples to use v11 span attributes, including HTTP, database, Gen AI, and the root-span source constant. Explain low-cardinality span names as the default behavior.

Clarify that useOperationNameForRootSpan controls sentry.graphql.operation on the enclosing root span in both modes, but only renames it in static mode. The GraphQL span's own operation attributes are recorded regardless of the option.

Fixes https://linear.app/getsentry/issue/SDK-1475

IS YOUR CHANGE URGENT?

  • No deadline: Not urgent, can wait up to 1 week+

@vercel

vercel Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Sep 21, 2026 11:57am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Sep 21, 2026 11:57am UTC

Request Review

@linear-code

linear-code Bot commented Sep 17, 2026

Copy link
Copy Markdown

SDK-1475

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Sep 17, 2026
@msonnb
msonnb force-pushed the ms/update-tracing-span-attributes branch from f4ad036 to 37c43f4 Compare September 17, 2026 09:19
@msonnb
msonnb changed the base branch from ms/document-opentelemetry-integration to master September 17, 2026 09:19
@msonnb
msonnb force-pushed the ms/update-tracing-span-attributes branch from 37c43f4 to 63a3e14 Compare September 21, 2026 07:22
@msonnb
msonnb marked this pull request as ready for review September 21, 2026 07:24
@codeowner-assignment
codeowner-assignment Bot requested a review from a team September 21, 2026 07:25
@msonnb
msonnb requested a review from Lms24 September 21, 2026 07:25
name: window.location.pathname,
attributes: {
[Sentry.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: "url",
[Sentry.SENTRY_SEGMENT_NAME_SOURCE]: "url",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

m: I just saw we actually export this attribute constant from the SDK packages but I'm not yet sure we want to do this. Can we switch to the string instead here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed here and in the migration guide 👍

@andreiborza
andreiborza changed the base branch from master to js-v11-docs September 22, 2026 12:13
@msonnb
msonnb merged commit 32477c5 into js-v11-docs Sep 22, 2026
24 checks passed
@msonnb
msonnb deleted the ms/update-tracing-span-attributes branch September 22, 2026 12:57

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — d5eb1af0 Deployed Sep 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

js-v11-docs Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants