Skip to content
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

Add extended request ID to general AWS Attributes #1670

Closed
trivikr opened this issue Dec 11, 2024 · 0 comments · Fixed by #1671
Closed

Add extended request ID to general AWS Attributes #1670

trivikr opened this issue Dec 11, 2024 · 0 comments · Fixed by #1671

Comments

@trivikr
Copy link
Contributor

trivikr commented Dec 11, 2024

Area(s)

area:aws

Is your change request related to a problem? Please describe.

Some AWS services (like S3) return extended request ID in header x-amz-id-2 to help troubleshoot problems.

From AWS S3 API Reference

x-amz-id-2: A special token that is used together with the x-amz-request-id header to help AWS troubleshoot problems.

This value is provided by AWS SDKs under extended request ID. Here is an example in AWS SDK for JavaScript v3

import { S3 } from "@aws-sdk/client-s3"; // v3.709.0

const client = new S3();
const response = await client.listBuckets();

console.log(response.$metadata.extendedRequestId); // wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=

Describe the solution you'd like

The AWS request ID is already populated under attribute aws.request_id
https://opentelemetry.io/docs/specs/semconv/attributes-registry/aws/#general-aws-attributes

Populate extended request ID under attribute aws.extended_request_id

Describe alternatives you've considered

No response

Additional context

No response

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

Successfully merging a pull request may close this issue.

1 participant