Skip to content

fix(attribute-values): Return values for sentry.trace_id - #8628

Merged
k-fish merged 4 commits into
masterfrom
fix/attribute-values-trace-id
Nov 2, 2026
Merged

k-fish merged 4 commits into
masterfrom
fix/attribute-values-trace-id

Conversation

@k-fish

@k-fish k-fish commented Oct 29, 2026

Copy link
Copy Markdown
Member

Discussed impl irl with Praj, but for product rationale:

When doing autocomplete for traces in the UI, it returns empty trace values. We already offer filter behaviour on the 'trace' keyword which is sent as sentry.trace_id then picked up by the map and pointed at the trace column.

Trace is the only column not backed by an attribute that we care about enumerating right now. Other columns like session_id are promoted from attributes anyway.

UI right now:
Screenshot 2026-10-29 at 12 04 05 PM

Discussed impl irl with Praj, but for product rationale:

When doing autocomplete for traces in the UI, it returns empty trace
values. We already offer filter behaviour on the 'trace' keyword which
is sent as `sentry.trace_id` then picked up by the map and pointed at
the trace column.

Trace is the _only_ column not backed by an attribute
that we care about enumerating right now. Other columns like session_id
are promoted from attributes anyway.
@k-fish
k-fish requested review from a team as code owners October 29, 2026 16:05
Comment thread snuba/protos/common.py Outdated
class NormalizedColumn(NamedTuple):
column_name: str
types: Sequence[AttributeKey.Type.ValueType]
in_attribute_maps: bool = True

@k-fish k-fish Oct 29, 2026 •

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.

I don't like this name, but I also don't have a better name.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

None of the options my robot gave me feels like too big of an improvement over this either :(. Dumping it's suggestions here incase anything speaks to you.


a few options for NormalizedColumn.in_attribute_maps:

is_attribute_backed — clearest if this describes how the column is stored
uses_attribute_map — concise, a bit implementation-focused
requires_attribute_map_lookup — clearest if it controls query behavior

i’d pick is_attribute_backed; it captures why trace_id is the exception without tying the name to a particular lookup.

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.

is_attribute_backed is better I think

k-fish and others added 2 commits October 29, 2026 12:22
Co-authored-by: Praj Bhandari <pbhandari@pbhandari.ca>
Co-authored-by: Cursor <cursoragent@cursor.com>
@pbhandari

Copy link
Copy Markdown
Contributor

@k-fish looks like the old behaviour was baked into sentry tests. You'll need to fix that for our CIs to be green. https://github.com/getsentry/snuba/actions/runs/40913056194/job/123588046210?pr=8628.

@k-fish
k-fish merged commit db91822 into master Nov 2, 2026
71 checks passed
@k-fish
k-fish deleted the fix/attribute-values-trace-id branch November 2, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants