Skip to content

feat(attributes): return last seen, cardinality, and Relay-modified counts from attribute details endpoint - #130528

Draft
JoshuaKGoldberg wants to merge 4 commits into
joshgoldberg/exp-1452-show-units-on-attribute-detailsfrom
joshgoldberg/exp-1453-return-last-seen-from-the-attribute
Draft

JoshuaKGoldberg wants to merge 4 commits into
joshgoldberg/exp-1452-show-units-on-attribute-detailsfrom
joshgoldberg/exp-1453-return-last-seen-from-the-attribute

Conversation

@JoshuaKGoldberg

Copy link
Copy Markdown
Member

The attribute details endpoint now returns per-dataset stats for the attribute: when it was last seen, its approximate cardinality, and for spans, how many stored values Relay modified (truncated or scrubbed). Each stat is queried independently and comes back null if its query fails, so stats never break the page.

Stats query the attribute's stored names rather than its public key, since one public key can map to several stored names (e.g. transaction) or to none (proxies like project, which get null stats). Last seen comes from Snuba's attribute-names rollup and falls back to a table scan only when the rollup can't answer.

Refs EXP-1453, EXP-1456

JoshuaKGoldberg and others added 4 commits November 9, 2026 16:23
…ails endpoint

Co-Authored-By: Claude <noreply@anthropic.com>
…s by type

Co-Authored-By: Claude <noreply@anthropic.com>
…attribute details endpoint

Co-Authored-By: Claude <noreply@anthropic.com>
…d number meta keys

Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

EXP-1456

EXP-1453

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 9, 2026

This branch has not been deployed

No deployments
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.

1 participant