Skip to content

fix(12155): set aws.queue.name tag from QueueUrl field in aws-sdk/sqs instrumentation - #12157

Draft
jochumb wants to merge 2 commits into
DataDog:masterfrom
jochumb:aws-sdk-sqs-queue-name-fix
Draft

fix(12155): set aws.queue.name tag from QueueUrl field in aws-sdk/sqs instrumentation#12157
jochumb wants to merge 2 commits into
DataDog:masterfrom
jochumb:aws-sdk-sqs-queue-name-fix

Conversation

@jochumb

@jochumb jochumb commented Aug 6, 2026

Copy link
Copy Markdown

What Does This Do

For SQS operations this sets the aws.queue.name tag based on the QueueUrl field in the request.

Motivation

In AWS SDK V2 the SQS operations mutating messages on a queue only have a QueueUrl field in the request.
As a consequence the aws.queue.name tag is never set, and the peer for the span is not inferred correctly.
The queue url does contain the queue name, similar as to how the sns topic arn contains the topic name.
This change determines the queue name based on the queue url in SQS operations.

Additional Notes

Fixes: #12155

@jochumb
jochumb requested review from a team as code owners August 6, 2026 14:50
@jochumb
jochumb requested review from jordan-wong and removed request for a team August 6, 2026 14:50
@jochumb
jochumb marked this pull request as draft August 6, 2026 14:50

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 86885ac4ba

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

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.

aws.queue.name not set on SQS producer and consumer spans when using AWS SDK v2

1 participant