Skip to content

feat(grouping): Add OpenStack Swift transaction ID parameterization#107762

Draft
JoshFerge wants to merge 1 commit intomasterfrom
jferg/swift-txn-id-parameterization
Draft

feat(grouping): Add OpenStack Swift transaction ID parameterization#107762
JoshFerge wants to merge 1 commit intomasterfrom
jferg/swift-txn-id-parameterization

Conversation

@JoshFerge
Copy link
Member

@JoshFerge JoshFerge commented Feb 6, 2026

Summary

  • Adds a new swift_txn_id parameterization regex that matches OpenStack Swift transaction IDs
  • Format: tx prefix + 21 lowercase hex chars + - + 10 lowercase hex char timestamp, with optional suffix
  • Placed before the hex pattern to avoid the hex pattern partially matching components of Swift txn IDs

Swift Transaction ID Format

Real-world examples from OpenStack docs:

  • tx274a77a8975c4a66aeb24-0052d95365
  • tx69f60bc9f7634a01988e6-0052d9544b

Test plan

  • Added test for base Swift transaction ID (34 chars)
  • Added test for Swift txn ID embedded in a message
  • Added test for Swift txn ID with cluster suffix
  • Added negative test for non-tx prefix (falls through to hex matching)
  • pytest -svv --reuse-db tests/sentry/grouping/test_parameterization.py — 202 passed

Parameterize Swift transaction IDs (tx<21 hex>-<10 hex timestamp>)
so that messages differing only by transaction ID get grouped together.
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 6, 2026
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