From b7b3fd4ebf7623cffd83c527475f8cb12ec29bc1 Mon Sep 17 00:00:00 2001 From: Alexander Wert Date: Fri, 24 Feb 2023 12:42:22 +0100 Subject: [PATCH] added AWS request id --- semantic_conventions/trace/instrumentation/aws-sdk.yml | 6 ++++++ .../trace/semantic_conventions/instrumentation/aws-sdk.md | 1 + 2 files changed, 7 insertions(+) diff --git a/semantic_conventions/trace/instrumentation/aws-sdk.yml b/semantic_conventions/trace/instrumentation/aws-sdk.yml index b5e1976aa6e..d774dc3d68e 100644 --- a/semantic_conventions/trace/instrumentation/aws-sdk.yml +++ b/semantic_conventions/trace/instrumentation/aws-sdk.yml @@ -26,6 +26,12 @@ groups: examples: - GetItem - PutItem + - id: rpc.aws.request_id + type: string + brief: "The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`." + examples: + - 79b9da39-b7ae-508a-a6bc-864b2829c622 + - C9ER4AJX75574TDJ - id: dynamodb.all type: span diff --git a/specification/trace/semantic_conventions/instrumentation/aws-sdk.md b/specification/trace/semantic_conventions/instrumentation/aws-sdk.md index f08d4f00368..1dcdd270fa5 100644 --- a/specification/trace/semantic_conventions/instrumentation/aws-sdk.md +++ b/specification/trace/semantic_conventions/instrumentation/aws-sdk.md @@ -18,6 +18,7 @@ with the naming guidelines for RPC client spans. | Attribute | Type | Description | Examples | Requirement Level | |---|---|---|---|---| +| `aws.rpc.aws.request_id` | string | The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. | `79b9da39-b7ae-508a-a6bc-864b2829c622`; `C9ER4AJX75574TDJ` | Recommended | | [`rpc.method`](../rpc.md) | string | The name of the operation corresponding to the request, as returned by the AWS SDK [1] | `GetItem`; `PutItem` | Recommended | | [`rpc.service`](../rpc.md) | string | The name of the service to which a request is made, as returned by the AWS SDK. [2] | `DynamoDB`; `S3` | Recommended | | [`rpc.system`](../rpc.md) | string | The value `aws-api`. | `aws-api` | Required |