Skip to content

fix(spans): Copy user sentry_tags into conventional attributes#6030

Merged
mjq merged 1 commit into
masterfrom
mjq/copy-user-sentry-tags-to-conventional-attrs
Jun 1, 2026
Merged

fix(spans): Copy user sentry_tags into conventional attributes#6030
mjq merged 1 commit into
masterfrom
mjq/copy-user-sentry-tags-to-conventional-attrs

Conversation

@mjq
Copy link
Copy Markdown
Member

@mjq mjq commented May 29, 2026

All the user attributes in sentry_tags have new conventional attributes without the sentry. prefix. User attributes are used during ingestion (segment enrichment copies them from segment spans to children) so having EAP coalesce queries via deprecations alone isn't enough, we need to actually copy them.

Once everything is straightened out we might be able to stop writing the old sentry. names, but currently Sentry depends on them.

Fixes INGEST-935.


🤖 : Claude Code (Opus 4.6) used to generate some of the code. Carefully human reviewed. Words my own.

@mjq mjq requested a review from a team as a code owner May 29, 2026 14:53
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 29, 2026

INGEST-935

@mjq mjq force-pushed the mjq/copy-user-sentry-tags-to-conventional-attrs branch 2 times, most recently from d857799 to dcfb6b4 Compare May 29, 2026 15:34
mjq added a commit to getsentry/sentry-conventions that referenced this pull request May 29, 2026
V1 spans write user information to `sentry.user.`-prefixed attributes instead of our conventional attributes. (With getsentry/relay#6030 we will start writing them to their conventional names as well going forward, but that doesn't help for backward compatibility.)

V2 spans only have the new, conventional attribute names. But, Sentry is currently still querying for the old `sentry.user.`-prefixed ones.

By adding these deprecated attributes, EAP will start coalescing queries to handle either attribute name. This will fix user attribute searches for V2 spans and give us backwards compatibility as we switch everything over to use the new conventional names.

Note that `_status: null` is fine for the deprecations - `backfill`, etc are only used by the v2 pipeline, and v2 spans never have these deprecated attributes.

Fixes #405, CON-95.

---

🤖: Used Claude Code (Opus 4.6) to help generate the JSON. Reviewed by hand. Words my own.
@mjq mjq force-pushed the mjq/copy-user-sentry-tags-to-conventional-attrs branch from 21a28d1 to f6503ee Compare June 1, 2026 15:09
@mjq mjq enabled auto-merge June 1, 2026 15:10
@mjq mjq added this pull request to the merge queue Jun 1, 2026
Merged via the queue into master with commit bda81a4 Jun 1, 2026
33 checks passed
@mjq mjq deleted the mjq/copy-user-sentry-tags-to-conventional-attrs branch June 1, 2026 15:47
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