Skip to content

Commit 52c1cb7

Browse files
authored
Lambda and AWS SDK metadata updates (#14997)
1 parent 21d5470 commit 52c1cb7

File tree

6 files changed

+56
-7
lines changed

6 files changed

+56
-7
lines changed

docs/instrumentation-list.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,8 @@ libraries:
13221322
description: |
13231323
Provides lightweight instrumentation of the Lambda core library, supporting all versions. It generates FaaS server spans with the `faas.invocation_id` attribute. Use this package if you only use `RequestStreamHandler` or know you don't use any event classes from `aws-lambda-java-events`. This also includes when you are using `aws-serverless-java-container` to run e.g., a Spring Boot application on Lambda.
13241324
For custom wrappers when using library instrumentation, you can configure the `OTEL_INSTRUMENTATION_AWS_LAMBDA_HANDLER` environment variable to contain your lambda handler method (in the format `package.ClassName::methodName`) and use one of wrappers as your lambda `Handler`.
1325+
semantic_conventions:
1326+
- FAAS_SERVER_SPANS
13251327
library_link: https://docs.aws.amazon.com/lambda/latest/dg/java-handler.html
13261328
source_path: instrumentation/aws-lambda/aws-lambda-core-1.0
13271329
scope:
@@ -1345,7 +1347,10 @@ libraries:
13451347
type: STRING
13461348
- name: aws-lambda-events-2.2
13471349
description: |
1348-
This version of the library instrumentation is deprecated, please use the `aws-lambda-events-3.11` library instrumentation instead. This instrumentation builds on top of the `aws-lambda-core-1.0` instrumentation, expanding support to cover the Lambda library, including standard and custom event types.
1350+
This version of the library instrumentation is deprecated, please use `aws-lambda-events-3.11` instead. This instrumentation enables FaaS spans and messaging spans for AWS Lambda functions handling event types.
1351+
semantic_conventions:
1352+
- FAAS_SERVER_SPANS
1353+
- MESSAGING_SPANS
13491354
library_link: https://docs.aws.amazon.com/lambda/latest/dg/java-handler.html
13501355
source_path: instrumentation/aws-lambda/aws-lambda-events-2.2
13511356
scope:
@@ -1391,7 +1396,10 @@ libraries:
13911396
type: STRING
13921397
- name: aws-lambda-events-3.11
13931398
description: |
1394-
This instrumentation builds on top of the `aws-lambda-core-1.0` instrumentation, expanding support to cover the Lambda library, including standard and custom event types.
1399+
This library instrumentation provides FaaS spans and messaging spans for AWS Lambda functions handling event types.
1400+
semantic_conventions:
1401+
- FAAS_SERVER_SPANS
1402+
- MESSAGING_SPANS
13951403
library_link: https://docs.aws.amazon.com/lambda/latest/dg/java-handler.html
13961404
source_path: instrumentation/aws-lambda/aws-lambda-events-3.11
13971405
scope:
@@ -1439,6 +1447,13 @@ libraries:
14391447
- name: aws-sdk-1.11
14401448
description: |
14411449
This instrumentation covers the AWS SDK 1.11+ client library, enabling messaging and client spans and metrics for calls to AWS services including DynamoDB, EC2, Kinesis, Lambda, RDS, S3, secrets manager, SNS/SQS and step functions.
1450+
semantic_conventions:
1451+
- HTTP_CLIENT_SPANS
1452+
- DATABASE_CLIENT_SPANS
1453+
- DATABASE_CLIENT_METRICS
1454+
- MESSAGING_SPANS
1455+
- GENAI_CLIENT_SPANS
1456+
- GENAI_CLIENT_METRICS
14421457
library_link: https://aws.amazon.com/sdk-for-java/
14431458
source_path: instrumentation/aws-sdk/aws-sdk-1.11
14441459
scope:
@@ -1667,6 +1682,13 @@ libraries:
16671682
- name: aws-sdk-2.2
16681683
description: |
16691684
This instrumentation covers the AWS SDK 2.2+ client library, enabling messaging and client spans and metrics for calls to AWS services including DynamoDB, EC2, Kinesis, Lambda, RDS, S3, SNS/SQS and Bedrock.
1685+
semantic_conventions:
1686+
- HTTP_CLIENT_SPANS
1687+
- DATABASE_CLIENT_SPANS
1688+
- DATABASE_CLIENT_METRICS
1689+
- MESSAGING_SPANS
1690+
- GENAI_CLIENT_SPANS
1691+
- GENAI_CLIENT_METRICS
16701692
library_link: https://aws.amazon.com/sdk-for-java/
16711693
source_path: instrumentation/aws-sdk/aws-sdk-2.2
16721694
scope:
@@ -5149,6 +5171,11 @@ libraries:
51495171
and ROLLBACK operations.
51505172
type: boolean
51515173
default: false
5174+
- name: otel.instrumentation.jdbc.experimental.sqlcommenter.enabled
5175+
description: |
5176+
Enables augmenting queries with a comment containing the tracing information. See [sqlcommenter](https://google.github.io/sqlcommenter/) for more info. WARNING: augmenting queries with tracing context will make query texts unique, which may have adverse impact on database performance. Consult with database experts before enabling.
5177+
type: boolean
5178+
default: false
51525179
- name: otel.instrumentation.common.peer-service-mapping
51535180
description: Used to specify a mapping from host names or IP addresses to peer
51545181
services.

instrumentation/aws-lambda/aws-lambda-core-1.0/metadata.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ description: >
88
For custom wrappers when using library instrumentation, you can configure the `OTEL_INSTRUMENTATION_AWS_LAMBDA_HANDLER`
99
environment variable to contain your lambda handler method (in the format `package.ClassName::methodName`) and use
1010
one of wrappers as your lambda `Handler`.
11+
semantic_conventions:
12+
- FAAS_SERVER_SPANS
1113
library_link: https://docs.aws.amazon.com/lambda/latest/dg/java-handler.html
1214
configurations:
1315
- name: otel.instrumentation.aws-lambda.flush-timeout

instrumentation/aws-lambda/aws-lambda-events-2.2/metadata.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
description: >
2-
This version of the library instrumentation is deprecated, please use the `aws-lambda-events-3.11`
3-
library instrumentation instead. This instrumentation builds on top of the `aws-lambda-core-1.0`
4-
instrumentation, expanding support to cover the Lambda library, including standard and custom event types.
2+
This version of the library instrumentation is deprecated, please use `aws-lambda-events-3.11`
3+
instead. This instrumentation enables FaaS spans and messaging spans for AWS Lambda functions
4+
handling event types.
5+
semantic_conventions:
6+
- FAAS_SERVER_SPANS
7+
- MESSAGING_SPANS
58
library_link: https://docs.aws.amazon.com/lambda/latest/dg/java-handler.html
69
configurations:
710
- name: otel.instrumentation.aws-lambda.flush-timeout

instrumentation/aws-lambda/aws-lambda-events-3.11/metadata.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
description: >
2-
This instrumentation builds on top of the `aws-lambda-core-1.0` instrumentation, expanding support
3-
to cover the Lambda library, including standard and custom event types.
2+
This library instrumentation provides FaaS spans and messaging spans for AWS Lambda functions
3+
handling event types.
4+
semantic_conventions:
5+
- FAAS_SERVER_SPANS
6+
- MESSAGING_SPANS
47
library_link: https://docs.aws.amazon.com/lambda/latest/dg/java-handler.html
58
configurations:
69
- name: otel.instrumentation.aws-lambda.flush-timeout

instrumentation/aws-sdk/aws-sdk-1.11/metadata.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ description: >
33
and metrics for calls to AWS services including DynamoDB, EC2, Kinesis, Lambda, RDS, S3, secrets
44
manager, SNS/SQS and step functions.
55
library_link: https://aws.amazon.com/sdk-for-java/
6+
semantic_conventions:
7+
- HTTP_CLIENT_SPANS
8+
- DATABASE_CLIENT_SPANS
9+
- DATABASE_CLIENT_METRICS
10+
- MESSAGING_SPANS
11+
- GENAI_CLIENT_SPANS
12+
- GENAI_CLIENT_METRICS
613
configurations:
714
- name: otel.instrumentation.aws-sdk.experimental-span-attributes
815
description: >

instrumentation/aws-sdk/aws-sdk-2.2/metadata.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ description: >
22
This instrumentation covers the AWS SDK 2.2+ client library, enabling messaging and client spans
33
and metrics for calls to AWS services including DynamoDB, EC2, Kinesis, Lambda, RDS, S3, SNS/SQS
44
and Bedrock.
5+
semantic_conventions:
6+
- HTTP_CLIENT_SPANS
7+
- DATABASE_CLIENT_SPANS
8+
- DATABASE_CLIENT_METRICS
9+
- MESSAGING_SPANS
10+
- GENAI_CLIENT_SPANS
11+
- GENAI_CLIENT_METRICS
512
library_link: https://aws.amazon.com/sdk-for-java/
613
configurations:
714
- name: otel.instrumentation.messaging.experimental.receive-telemetry.enabled

0 commit comments

Comments
 (0)