Skip to content

feat(server-utils)!: Align AMQP and Redis span attributes - #23324

Merged
s1gr1d merged 8 commits into
developfrom
sig/messaging-attributes
Aug 25, 2026
Merged

feat(server-utils)!: Align AMQP and Redis span attributes#23324
s1gr1d merged 8 commits into
developfrom
sig/messaging-attributes

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Aug 12, 2026

Copy link
Copy Markdown
Member

Align AMQP, Redis, and ioredis tracing-channel spans with the current Sentry semantic conventions.

Closes #22363

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 28.57 kB - -
@sentry/browser - with treeshaking flags 26.92 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB - -
@sentry/browser (incl. Tracing) 48.5 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.52 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.43 kB - -
@sentry/browser (incl. Tracing, Replay) 87.89 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.35 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.59 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.3 kB - -
@sentry/browser (incl. Feedback) 45.81 kB - -
@sentry/browser (incl. sendFeedback) 33.36 kB - -
@sentry/browser (incl. FeedbackAsync) 38.47 kB - -
@sentry/browser (incl. Metrics) 29.52 kB - -
@sentry/browser (incl. Logs) 29.8 kB - -
@sentry/browser (incl. Metrics & Logs) 30.45 kB - -
@sentry/react 30.33 kB - -
@sentry/react (incl. Tracing) 50.71 kB - -
@sentry/vue 35.64 kB - -
@sentry/vue (incl. Tracing) 50.73 kB - -
@sentry/svelte 28.6 kB - -
CDN Bundle 30.32 kB - -
CDN Bundle (incl. Tracing) 49.02 kB - -
CDN Bundle (incl. Logs, Metrics) 32.54 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.89 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 72.91 kB - -
CDN Bundle (incl. Tracing, Replay) 86.47 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.33 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.22 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.17 kB - -
CDN Bundle - uncompressed 89.94 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.64 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.23 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.33 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.18 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.92 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.6 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.62 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.28 kB - -
@sentry/nextjs (client) 53.23 kB - -
@sentry/sveltekit (client) 48.92 kB - -
@sentry/core/server 65.11 kB - -
@sentry/core/browser 52.27 kB - -
@sentry/node 117.48 kB -0.14% -154 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 82.2 kB +0.03% +24 B 🔺
@sentry/aws-serverless 91.64 kB +0.03% +21 B 🔺
@sentry/cloudflare (withSentry) - minified 196.9 kB - -
@sentry/cloudflare (withSentry) 487.47 kB - -

View base workflow run

@s1gr1d

s1gr1d commented Aug 12, 2026

Copy link
Copy Markdown
Member Author

bugbot run

Comment thread dev-packages/node-integration-tests/suites/tracing/redis/test.ts
Develop landed overlapping semantic-convention work (#23408, #23422,
#23353, #23405) and restructured the redis integration into
`integrations/redis/`. Conflicts were resolved by keeping develop's
file layout and layering this branch's attribute changes on top:

- ioredis/node-redis spans emit `db.operation.name` and drop
  `db.connection_string`; `server.address`/`server.port` are only set
  when known.
- The ioredis orchestrion span op moves from `db` to `db.query`, and the
  connect span to `db` via `SENTRY_OP`, matching the native
  diagnostics-channel subscriber develop added.
- AMQP keeps this branch's removal of the legacy `messaging.*`
  attributes and adds `messaging.operation.name`.
- Test conditionals on the deleted `isOrchestrionEnabled()` helper
  (#23435) collapse to their channel branch.
- `nextjs-16-orchestrion` was deleted upstream (#23349); its ioredis
  coverage now lives in `nextjs-16/tests/db-page.test.ts`.

The v11 migration doc keeps develop's subsection structure with this
branch's AMQP and Redis specifics folded in.
@s1gr1d
s1gr1d marked this pull request as ready for review August 24, 2026 13:23
@s1gr1d
s1gr1d requested review from a team as code owners August 24, 2026 13:23
@s1gr1d
s1gr1d requested review from JPeer264 and isaacs and removed request for a team August 24, 2026 13:23
@s1gr1d

s1gr1d commented Aug 24, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@s1gr1d
s1gr1d requested a review from msonnb August 24, 2026 13:24

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 4d6db2e. Configure here.

@JPeer264 JPeer264 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@s1gr1d
s1gr1d enabled auto-merge (squash) August 25, 2026 11:31
@s1gr1d
s1gr1d merged commit 96490b8 into develop Aug 25, 2026
272 checks passed
@s1gr1d
s1gr1d deleted the sig/messaging-attributes branch August 25, 2026 12:13
JPeer264 added a commit to getsentry/sentry-conventions that referenced this pull request Aug 27, 2026
Adds the legacy AMQP `messaging.*` attributes and `db.connection_string`
that the JavaScript SDK stopped emitting in v11, so that the old names keep
pointing at their replacements while dashboards and alerts migrate.

`db.connection_string` has no single replacement: the connection is now
described by `server.address` and `server.port`, so it carries a reason
instead of a `replacement` and gets no alias.

Deprecated by getsentry/sentry-javascript#23324

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
JPeer264 added a commit to getsentry/sentry-conventions that referenced this pull request Aug 28, 2026
Adds the legacy AMQP `messaging.*` attributes and `db.connection_string`
that the JavaScript SDK stopped emitting in v11, so that the old names keep
pointing at their replacements while dashboards and alerts migrate.

`db.connection_string` has no single replacement: the connection is now
described by `server.address` and `server.port`, so it carries a reason
instead of a `replacement` and gets no alias.

Deprecated by getsentry/sentry-javascript#23324

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
JPeer264 added a commit to getsentry/sentry-conventions that referenced this pull request Aug 28, 2026
Adds the legacy AMQP `messaging.*` attributes and `db.connection_string`
that the JavaScript SDK stopped emitting in v11, so that the old names keep
pointing at their replacements while dashboards and alerts migrate.

`db.connection_string` has no single replacement: the connection is now
described by `server.address` and `server.port`, so it carries a reason
instead of a `replacement` and gets no alias.

Deprecated by getsentry/sentry-javascript#23324

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
JPeer264 added a commit to getsentry/sentry-conventions that referenced this pull request Aug 28, 2026
…ed) (#581)

* feat(attributes): Add legacy AMQP and Redis span attributes (deprecated)

Adds the legacy AMQP `messaging.*` attributes and `db.connection_string`
that the JavaScript SDK stopped emitting in v11, so that the old names keep
pointing at their replacements while dashboards and alerts migrate.

`db.connection_string` has no single replacement: the connection is now
described by `server.address` and `server.port`, so it carries a reason
instead of a `replacement` and gets no alias.

Deprecated by getsentry/sentry-javascript#23324

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Update model/attributes/db/db__connection_string.json

Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>

* fixup! Update model/attributes/db/db__connection_string.json

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
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.

Remove legacy messaging/db span attributes from AMQP & Redis instrumentations

2 participants