Skip to content

ref(traces): Prefer transaction over span.name for trace naming#110708

Open
mjq wants to merge 1 commit intomasterfrom
mjq/revert-traces-name
Open

ref(traces): Prefer transaction over span.name for trace naming#110708
mjq wants to merge 1 commit intomasterfrom
mjq/revert-traces-name

Conversation

@mjq
Copy link
Member

@mjq mjq commented Mar 14, 2026

#107543 addressed issues with OTel spans in Explore's Trace Samples tab, but it caused a worse experience for some Sentry SDK spans (see #109629).

This PR additionally queries transaction in the trace samples query and uses it as the trace name when present, falling back to span.name. This should give us the best of both worlds, bringing back the more descriptive transaction values for Sentry SDK users while falling back for OTel span where transaction is blank.

Fixes #109629.

Query the transaction column in the EAP enrichment query and use it
as the trace name when present, falling back to span.name. This
provides more accurate names for Sentry SDK transaction spans while
preserving OTel span naming.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mjq mjq requested a review from wmak March 14, 2026 00:40
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 14, 2026
@mjq
Copy link
Member Author

mjq commented Mar 14, 2026

@sentry review

@mjq mjq marked this pull request as ready for review March 14, 2026 00:52
@mjq mjq requested review from a team as code owners March 14, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Traces explorer: show transaction name instead of op in "Trace Root" column

1 participant