Skip to content

Conversation

@trivikr
Copy link
Contributor

@trivikr trivikr commented Dec 11, 2024

Fixes #1670

Changes

Adds extended request ID to general AWS Attributes under aws.extended_request_id

Merge requirement checklist

@trivikr trivikr requested review from a team as code owners December 11, 2024 01:50
@trivikr trivikr force-pushed the aws.extended_request_id branch from 5c4c3c6 to 4f6989b Compare December 11, 2024 02:03
@trivikr
Copy link
Contributor Author

trivikr commented Dec 11, 2024

From my understanding, the schema-next.yaml is not required to be changed, as no existing attribute is being updated. This PR adds a new attribute.

Docs: https://opentelemetry.io/docs/specs/otel/schemas/file_format_v1.0.0/#span_events-section

Copy link
Member

@lmolkova lmolkova left a comment

Choose a reason for hiding this comment

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

Please reference this attribute from AWS spans you expect the attribute to be available on - there are quite a few of them defined here https://github.com/open-telemetry/semantic-conventions/blob/main/model/aws/sdk-spans.yml

Also, is it populated by any instrumentations?

@trivikr
Copy link
Contributor Author

trivikr commented Dec 12, 2024

is it populated by any instrumentations?

I've been maintaining AWS SDK for JavaScript for 5+ years, and was recently added as component owner of it's OpenTelemetry Instrumentation in open-telemetry/opentelemetry-js-contrib#2557. I plan to add the attribute as soon as it's merged and released in semantic convention.

AWS SDK for Go Observability solution does use it https://github.com/aws/aws-sdk-go-v2/blob/a164d844a90d8b9f86f8cb827b3fef512eabaabf/service/internal/s3shared/metadata_retriever.go#L53

@trivikr trivikr requested a review from a team as a code owner December 12, 2024 04:12
@trivikr
Copy link
Contributor Author

trivikr commented Dec 12, 2024

Please reference this attribute from AWS spans you expect the attribute to be available on

Added in 24ada32 (#1671)

@trivikr
Copy link
Contributor Author

trivikr commented Dec 12, 2024

The markdown-link-check either incorrectly checks the link from the logs, or the link might have been down when the test was performed.

  ERROR: 1 dead links found in ./docs/system/system-metrics.md !
  [✖] https://blogs.oracle.com/linux/post/understanding-linux-kernel-memory-statistics → Status: 0
make: *** [Makefile:72: markdown-link-check] Error 1

It's failing for other PRs too:

Can you re-run the workflow?

@lmolkova lmolkova merged commit 01be4a4 into open-telemetry:main Dec 17, 2024
14 checks passed
@trivikr trivikr deleted the aws.extended_request_id branch December 17, 2024 04:24
@damemi
Copy link
Member

damemi commented Aug 15, 2025

@trivikr hi, could you please clarify if this header should be required for all AWS services? In your initial issue, you mentioned that x-amz-id-2 is used in S3, but here it was also added to services like DynamoDB

I just opened another issue (before I saw this) because it doesn't seem like Dynamo uses x-amz-id-2 in any of its documentation or client code. Should this attribute be removed from the required list for AWS services that don't use it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add extended request ID to general AWS Attributes

4 participants