Skip to content

feat(segment-enrichment): Apply clusterer to segment names#104192

Merged
mjq merged 3 commits intomasterfrom
mjq/2025-11-26/apply-clusterer-rules
Dec 2, 2025
Merged

feat(segment-enrichment): Apply clusterer to segment names#104192
mjq merged 3 commits intomasterfrom
mjq/2025-11-26/apply-clusterer-rules

Conversation

@mjq
Copy link
Copy Markdown
Member

@mjq mjq commented Dec 1, 2025

Continues the work from #103739 and #103913.

This PR ports the application of transaction name clusterer rules from Relay into segment enrichment. Relay will continue to apply transaction name clustering to spans from transactions, while this code will handle standalone spans (spans v2) and OTLP spans.

See the preamble to sentry.ingest.transaction_clusterer.tree for an explanation of how transaction name clustering rules are matched.

Closes ENG-5747.

@mjq mjq requested review from a team as code owners December 1, 2025 20:32
@linear
Copy link
Copy Markdown

linear bot commented Dec 1, 2025

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 1, 2025
also fixes a test case copy/paste error, and marks unused params in tests.
@mjq mjq merged commit b2f7823 into master Dec 2, 2025
67 checks passed
@mjq mjq deleted the mjq/2025-11-26/apply-clusterer-rules branch December 2, 2025 19:19
mjq added a commit that referenced this pull request Dec 11, 2025
)

Last in a series of PRs
(#103739,
#103913,
#104192) to port transaction
name clustering to segment enrichment for segments.

This adds the final step, bumping lifetime rules after their
application. Since the arguments for transactions and segments are
different, refactored the existing `_bump_rule_lifetime` into two entry
points that munge arguments before passing them to the existing logic.

Closes ENG-5952.
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants