Skip to content

Commit 866d03a

Browse files
committed
metadata for new aws lambda events
1 parent f9d1d33 commit 866d03a

File tree

5 files changed

+75
-9
lines changed

5 files changed

+75
-9
lines changed

docs/instrumentation-list.yaml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ libraries:
945945
type: STRING
946946
- name: aws-lambda-events-2.2
947947
description: |
948-
Provides full instrumentation of the Lambda library, including standard and custom event types, from `aws-lambda-java-events` 2.2+.
948+
This version of the library instrumentation is deprecated, please use the aws-lambda-events-3.11 library instrumentation instead. Provides instrumentation of the Lambda library, including standard and custom event types, from `aws-lambda-java-events` 2.2+. Does not support SQSBatchResponse.
949949
source_path: instrumentation/aws-lambda/aws-lambda-events-2.2
950950
scope:
951951
name: io.opentelemetry.aws-lambda-events-2.2
@@ -960,6 +960,11 @@ libraries:
960960
description: Flush timeout in milliseconds.
961961
type: int
962962
default: 10000
963+
- name: otel.instrumentation.http.known-methods
964+
description: |
965+
Configures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as `_OTHER`.
966+
type: list
967+
default: CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE
963968
telemetry:
964969
- when: default
965970
spans:
@@ -984,13 +989,51 @@ libraries:
984989
- name: user_agent.original
985990
type: STRING
986991
- name: aws-lambda-events-3.11
992+
description: |
993+
Provides full instrumentation of the Lambda library, including standard and custom event types, from `aws-lambda-java-events` 3.11+.
987994
source_path: instrumentation/aws-lambda/aws-lambda-events-3.11
988995
scope:
989996
name: io.opentelemetry.aws-lambda-events-3.11
990997
target_versions:
991998
library:
992999
- com.amazonaws:aws-lambda-java-events:3.11.0
9931000
- com.amazonaws:aws-lambda-java-core:1.0.0
1001+
configurations:
1002+
- name: otel.instrumentation.aws-lambda.flush-timeout
1003+
description: Flush timeout in milliseconds.
1004+
type: int
1005+
default: 10000
1006+
telemetry:
1007+
- when: default
1008+
spans:
1009+
- span_kind: CONSUMER
1010+
attributes:
1011+
- name: messaging.destination.name
1012+
type: STRING
1013+
- name: messaging.message.id
1014+
type: STRING
1015+
- name: messaging.operation
1016+
type: STRING
1017+
- name: messaging.system
1018+
type: STRING
1019+
- span_kind: SERVER
1020+
attributes:
1021+
- name: cloud.account.id
1022+
type: STRING
1023+
- name: cloud.resource_id
1024+
type: STRING
1025+
- name: faas.invocation_id
1026+
type: STRING
1027+
- name: faas.trigger
1028+
type: STRING
1029+
- name: http.request.method
1030+
type: STRING
1031+
- name: http.response.status_code
1032+
type: LONG
1033+
- name: url.full
1034+
type: STRING
1035+
- name: user_agent.original
1036+
type: STRING
9941037
- name: aws-sdk-1.11
9951038
description: |
9961039
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.

instrumentation-docs/instrumentations.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ readonly INSTRUMENTATIONS=(
117117
"openai:openai-java-1.1:javaagent:test"
118118
"aws-lambda:aws-lambda-core-1.0:javaagent:test"
119119
"aws-lambda:aws-lambda-events-2.2:javaagent:test"
120+
"aws-lambda:aws-lambda-events-3.11:library:test"
120121
"cassandra:cassandra-3.0:javaagent:test"
121122
"cassandra:cassandra-3.0:javaagent:testStableSemconv"
122123
"cassandra:cassandra-4.0:javaagent:test"
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
description: >
2-
Provides full instrumentation of the Lambda library, including standard and custom event types,
3-
from `aws-lambda-java-events` 2.2+.
2+
This version of the library instrumentation is deprecated, please use the aws-lambda-events-3.11
3+
library instrumentation instead. Provides instrumentation of the Lambda library, including
4+
standard and custom event types, from `aws-lambda-java-events` 2.2+. Does not support
5+
SQSBatchResponse.
46
configurations:
57
- name: otel.instrumentation.aws-lambda.flush-timeout
68
type: int
79
default: 10000
810
description: Flush timeout in milliseconds.
9-
11+
- name: otel.instrumentation.http.known-methods
12+
description: >
13+
Configures the instrumentation to recognize an alternative set of HTTP request methods. All
14+
other methods will be treated as `_OTHER`.
15+
type: list
16+
default: "CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE"

instrumentation/aws-lambda/aws-lambda-events-3.11/library/build.gradle.kts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ dependencies {
2222
testImplementation("uk.org.webcompere:system-stubs-jupiter")
2323
}
2424

25-
tasks.withType<Test>().configureEach {
26-
// required on jdk17
27-
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
28-
jvmArgs("--add-opens=java.base/java.util=ALL-UNNAMED")
29-
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
25+
tasks {
26+
withType<Test>().configureEach {
27+
// required on jdk17
28+
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
29+
jvmArgs("--add-opens=java.base/java.util=ALL-UNNAMED")
30+
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
31+
}
32+
33+
test {
34+
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
35+
}
3036
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
description: >
2+
Provides full instrumentation of the Lambda library, including standard and custom event types,
3+
from `aws-lambda-java-events` 3.11+.
4+
configurations:
5+
- name: otel.instrumentation.aws-lambda.flush-timeout
6+
type: int
7+
default: 10000
8+
description: Flush timeout in milliseconds.
9+

0 commit comments

Comments
 (0)