Skip to content

Conversation

@blairhyy-amazon
Copy link
Member

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 config
  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 18:28
@blairhyy-amazon blairhyy-amazon requested review from bjrara and jj22ee July 3, 2025 21:30
Copy link
Contributor

@jj22ee jj22ee left a comment

Choose a reason for hiding this comment

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

lgtm!

@bjrara bjrara merged commit 9b0a538 into aws-observability:main Jul 3, 2025
9 checks passed
jj22ee added a commit that referenced this pull request Jul 10, 2025
jj22ee added a commit that referenced this pull request Jul 10, 2025
… key for cross-account support (#192)""

This reverts commit d2a69eb.
jj22ee added a commit to jj22ee/aws-otel-js-instrumentation that referenced this pull request Jul 11, 2025
jj22ee added a commit that referenced this pull request Jul 11, 2025
… cross-account support (#192)" (#212)

*Issue #, if available:*
This reverts commit 9b0a538
(#192).

This is a temporary change in order to unblock the main build workflow
that is currently failing -
https://github.com/aws-observability/aws-otel-js-instrumentation/actions/runs/16062476677/job/45752418669

*Description of changes:*


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 pushed a commit to blairhyy-amazon/aws-otel-js-instrumentation that referenced this pull request Jul 22, 2025
blairhyy-amazon added a commit to blairhyy-amazon/aws-otel-js-instrumentation that referenced this pull request Jul 22, 2025
…ccount support (aws-observability#192)

**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.

2. 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 config
 
3. 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.

4. 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 added a commit to blairhyy-amazon/aws-otel-js-instrumentation that referenced this pull request Jul 29, 2025
…ccount support (aws-observability#192)

**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.

2. 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 config
 
3. 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.

4. 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.
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.

3 participants