Skip to content

feat(contrib/aws/sqs): add cloud.resource_id as resource tag#3894

Merged
dd-mergequeue[bot] merged 5 commits into
mainfrom
seunglee/add-sqs-queueurl-tag
Aug 29, 2025
Merged

feat(contrib/aws/sqs): add cloud.resource_id as resource tag#3894
dd-mergequeue[bot] merged 5 commits into
mainfrom
seunglee/add-sqs-queueurl-tag

Conversation

@seungleelee

@seungleelee seungleelee commented Aug 19, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR attaches a cloud.resource_id tag to AWS SQS traces with the sqs arn as the value, derived from the queueURL - this is already available within the tracer since the queue url is a parameter to the SQS operations via AWS SDK.

Motivation

Part of a larger effort to better link cloud resources within Datadog. Currently the way in which sqs resources are tagged are inconsistent across different trace libraries, and we need a consistent tag key with the same value format to support this linkage.

Jira Ticket and more context around this effort

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • New code is free of linting errors. You can check this by running ./scripts/lint.sh locally.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

@github-actions github-actions Bot added the apm:ecosystem contrib/* related feature requests or bugs label Aug 19, 2025
@seungleelee
seungleelee marked this pull request as ready for review August 19, 2025 17:47
@seungleelee
seungleelee requested review from a team as code owners August 19, 2025 17:47
@seungleelee seungleelee changed the title feat(contrib/aws/sqs): add queue url as resource tag feat(contrib/aws/sqs): add cloud.resource_id as resource tag Aug 25, 2025
@pr-commenter

pr-commenter Bot commented Aug 25, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-08-28 21:01:00

Comparing candidate commit 0aaf27e in PR branch seunglee/add-sqs-queueurl-tag with baseline commit 6d45b47 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics.

Comment thread contrib/aws/aws-sdk-go-v2/aws/aws.go Outdated
Comment thread contrib/aws/aws-sdk-go-v2/aws/aws.go
Comment thread contrib/aws/aws-sdk-go-v2/aws/aws.go Outdated
Comment thread contrib/aws/aws-sdk-go/aws/aws.go Outdated
@seungleelee
seungleelee force-pushed the seunglee/add-sqs-queueurl-tag branch from 905443b to 0aaf27e Compare August 28, 2025 20:44
@darccio

darccio commented Aug 29, 2025

Copy link
Copy Markdown
Member

/merge

@dd-devflow-routing-codex

dd-devflow-routing-codex Bot commented Aug 29, 2025

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2025-08-29 10:09:09 UTC ℹ️ Start processing command /merge


2025-08-29 10:09:16 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 14m (p90).


2025-08-29 10:20:51 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue
dd-mergequeue Bot merged commit 98744a1 into main Aug 29, 2025
224 checks passed
@dd-mergequeue
dd-mergequeue Bot deleted the seunglee/add-sqs-queueurl-tag branch August 29, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apm:ecosystem contrib/* related feature requests or bugs mergequeue-status: done

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants