Skip to content

feat(spans): Add sentry.category normalization for V2 spans#5533

Merged
mjq merged 6 commits intomasterfrom
mjq/2026-01-13/category-on-v2
Jan 14, 2026
Merged

feat(spans): Add sentry.category normalization for V2 spans#5533
mjq merged 6 commits intomasterfrom
mjq/2026-01-13/category-on-v2

Conversation

@mjq
Copy link
Member

@mjq mjq commented Jan 14, 2026

Adds normalize_span_category function to the EAP normalization pipeline that writes sentry.category into span attributes. The category is derived using the same logic as V1 span processing:

  • From sentry.op via span_op_to_category (now public)
  • From span attributes (db.system.name, http.request.method, etc.)

The function is called after normalize_sentry_op to ensure the op is available for category derivation.

The category attribute is used by Sentry's Insights modules to filter spans.

mjq and others added 2 commits January 13, 2026 20:26
…pans

Adds `normalize_span_category` function to the EAP normalization pipeline
that writes `sentry.category` into span attributes. The category is derived
using the same logic as V1 span processing:
- From `sentry.op` via `span_op_to_category` (now public)
- From span attributes (db.system.name, http.request.method, etc.)

The function is called after `normalize_sentry_op` to ensure the op is
available for category derivation.

The category attribute is used by Sentry's Insights modules to filter spans.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@mjq mjq marked this pull request as ready for review January 14, 2026 02:00
@mjq mjq requested a review from a team as a code owner January 14, 2026 02:00
@mjq mjq enabled auto-merge January 14, 2026 14:37
@mjq mjq added this pull request to the merge queue Jan 14, 2026
Merged via the queue into master with commit afe5771 Jan 14, 2026
29 checks passed
@mjq mjq deleted the mjq/2026-01-13/category-on-v2 branch January 14, 2026 15:23
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