Skip to content

feat: Emit low-cardinality span names for messaging spans (amqplib, kafka, ...) - #23652

Open
s1gr1d wants to merge 1 commit into
developfrom
sig/span-names-messaging
Open

feat: Emit low-cardinality span names for messaging spans (amqplib, kafka, ...)#23652
s1gr1d wants to merge 1 commit into
developfrom
sig/span-names-messaging

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Aug 26, 2026

Copy link
Copy Markdown
Member

Some notes on the changes:
extractQueueName now returns undefined instead of 'unknown' to better distinguish between an actual missing value vs. a string that carries a meaning that it probably shouldn't. The placeholder "unknown" moved to the place where we actually set it.

The amqplib consumer names its streamed span after the exchange rather than the queue argument, because queue falls back to the high-cardinality routing key (order.created.12345) whenever the dispatch channel fires before consume resolves.

A bug fix: An SQS command with no QueueUrl was named undefined receive, and now falls back to the generic SQS.ReceiveMessage.

Closes #23528

@s1gr1d
s1gr1d requested review from a team as code owners August 26, 2026 12:28
@s1gr1d
s1gr1d requested review from JPeer264, chargome, isaacs and nicohrubec and removed request for a team August 26, 2026 12:28
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.

Emit low cardinality messaging span names

1 participant