Skip to content

Conversation

@gggritso
Copy link
Member

A few more visual updates to the span waterfall for those using OTel-friendly UI:

  1. Update the span tree again. This time, bring it back closer to show it originally worked. Always show span.op (unless it's "default"). Show the span name if using OTel UI, otherwise show span description
  2. Favour db.query.text attribute when creating a formatted description. This is a semantic attribute that contains the entire query, it should be used first
  3. For OTel UI, show the span name in place of the span description in the span description section of the details panel
  4. When making a "More Samples" link for OTel UI, create the query by using the span.name attribute instead of `span.description

Another UI update

- always show `span.op` unless it's `"default"` (same as current
  behaviour)
- if OTel UI is on, show the span _name_. If span name is not available,
  fall back to _description_

This creates decent behaviour for traces that contain both OTLP and
Sentry spans.
This is a more semantic way to access the query than the description, it
should be the first place to look.
When showing the span details section, for OTLP, use `span.name` which
will always be present.
@linear
Copy link

linear bot commented Aug 12, 2025

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 12, 2025
@gggritso gggritso requested a review from Abdkhan14 August 12, 2025 20:00
@gggritso gggritso marked this pull request as ready for review August 12, 2025 20:00
@gggritso gggritso requested a review from a team August 12, 2025 20:00
cursor[bot]

This comment was marked as outdated.

@gggritso gggritso merged commit 8272700 into master Aug 15, 2025
45 checks passed
@gggritso gggritso deleted the georgegritsouk/ope-62-favor-spanname-in-the-trace-waterfall branch August 15, 2025 15:55
priscilawebdev pushed a commit that referenced this pull request Aug 25, 2025
…#97704)

A few more visual updates to the span waterfall for those using
OTel-friendly UI:

1. Update the span tree again. This time, bring it back closer to show
it originally worked. Always show `span.op` (unless it's `"default"`).
Show the span name if using OTel UI, otherwise show span description
2. Favour `db.query.text` attribute when creating a formatted
description. This is a semantic attribute that contains the entire
query, it should be used first
3. For OTel UI, show the span name in place of the span description in
the span description section of the details panel
4. When making a "More Samples" link for OTel UI, create the query by
using the `span.name` attribute instead of `span.description
andrewshie-sentry pushed a commit that referenced this pull request Aug 26, 2025
…#97704)

A few more visual updates to the span waterfall for those using
OTel-friendly UI:

1. Update the span tree again. This time, bring it back closer to show
it originally worked. Always show `span.op` (unless it's `"default"`).
Show the span name if using OTel UI, otherwise show span description
2. Favour `db.query.text` attribute when creating a formatted
description. This is a semantic attribute that contains the entire
query, it should be used first
3. For OTel UI, show the span name in place of the span description in
the span description section of the details panel
4. When making a "More Samples" link for OTel UI, create the query by
using the `span.name` attribute instead of `span.description
@github-actions github-actions bot locked and limited conversation to collaborators Aug 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants