Skip to content

feat: Extract resource arn and remote resource access key for cross-account support #396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

blairhyy-amazon
Copy link

Description of changes:

  1. Add auto-instrumentation support for the following AWS resources.
  • Populate aws.stream.arn in Span by extracting StreamArn from the request body.
  • Populate aws.table.arn in Span by extracting TableArn from the response body.
  1. Add auto-instrumentation support for remote resource access key.
  • Populate aws.auth.account.access_key and aws.auth.region in Span from STS credentials in client instance
  1. Generate cross-account metrics attributes when remote resource identifier is present
  • If remote resource arn is available, extract account id and region from arn.
  • Otherwise, pass account access key id and region from span to metric if available.
  1. Add unit tests, contract tests. Done E2E tests with CW agent.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@blairhyy-amazon blairhyy-amazon requested a review from a team as a code owner June 13, 2025 17:47
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.

1 participant