feat(attributes): Deprecate sentry.transaction - #345
Conversation
Mark sentry.transaction as deprecated in favor of sentry.segment.name and keep the transaction alias group symmetric across generated packages. Co-Authored-By: Claude <[email protected]> Made-with: Cursor
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
Other
Bug Fixes 🐛
Internal Changes 🔧Deps
Other
🤖 This preview updates automatically when you update the PR. |
Record PR 345 in the affected attribute changelogs and regenerate package metadata so the next release captures the deprecation update. Co-Authored-By: Claude <[email protected]> Made-with: Cursor
|
I agree in principle but this one needs extremely careful checking across the board before merge please - IIRC currently both this and |
There was a problem hiding this comment.
Pull request overview
Deprecates sentry.transaction in favor of sentry.segment.name, and updates the existing transaction alias/deprecation metadata so all alias relationships and generated language outputs agree on the replacement path.
Changes:
- Mark
transactionandsentry.transactionas backfill deprecations targetingsentry.segment.name. - Update alias groups to keep
transaction/sentry.transaction/sentry.segment.namesymmetric across model JSON. - Regenerate derived artifacts for JS/Python and
shared/deprecated_attributes.json.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| shared/deprecated_attributes.json | Regenerated deprecated-attribute export reflecting the new replacement and added deprecated entry for sentry.transaction. |
| model/attributes/transaction.json | Updates transaction deprecation to backfill into sentry.segment.name and expands aliases to include the full group. |
| model/attributes/sentry/sentry__transaction.json | Adds deprecation metadata for sentry.transaction and aligns aliases with the group. |
| model/attributes/sentry/sentry__segment__name.json | Adds aliases so the preferred attribute acknowledges the deprecated names. |
| javascript/sentry-conventions/src/attributes.ts | Regenerated TS constants/docs/metadata to reflect the new aliases + deprecation target. |
| python/src/sentry_conventions/attributes.py | Regenerated Python constants/docs/metadata; adds SENTRY_TRANSACTION to the deprecated warning set and updates deprecation/alias metadata. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
yeah definitely, I'll let this one sit for a while and investigate a bit, it's not critical I noticed some dashboards are currently not working with span v2 since they require the "transaction" attribute (which is not backfilled or coalesced without the deprecation) |
|
@buenaflor Gotcha, that makes sense. I'm going on vacation for a bit but I bet @jameskeane can help sort out dashboard team help for the investigation if that's useful. |
|
I double checked and found no potential issues in deprecating it in favour of sentry.segment.name |
Deprecate
sentry.transactionin favor ofsentry.segment.name.The segment name is the preferred attribute going forward, so this marks
sentry.transactionfor backfill-based deprecation and updates the existingtransactionalias to point at the same replacement.