Skip to content

Commit bad1806

Browse files
committed
Merge branch 'main' into nats-instrumentation
2 parents 041a7a6 + 0b0c59c commit bad1806

File tree

162 files changed

+2763
-1367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+2763
-1367
lines changed

.github/workflows/codeql.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ jobs:
7575
# --no-build-cache is required for codeql to analyze all modules
7676
# --no-daemon is required for codeql to observe the compilation
7777
# (see https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/preparing-your-code-for-codeql-analysis#specifying-build-commands)
78-
run: ./gradlew assemble -x javadoc --no-build-cache --no-daemon
78+
# collectReachabilityMetadata tasks are disabled because they often cause the build to fail
79+
run: >
80+
./gradlew assemble -x javadoc
81+
-x :smoke-tests-otel-starter:spring-boot-3:collectReachabilityMetadata
82+
-x :smoke-tests-otel-starter:spring-boot-3.2:collectReachabilityMetadata
83+
-x :smoke-tests-otel-starter:spring-boot-reactive-3:collectReachabilityMetadata
84+
--no-build-cache --no-daemon
7985
8086
- name: Perform CodeQL analysis
8187
uses: github/codeql-action/analyze@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11
1.65 KB
Binary file not shown.

benchmark-overhead/gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=bd71102213493060956ec229d946beee57158dbd89d0e62b91bca0fa2c5f3531
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionSha256Sum=8fad3d78296ca518113f3d29016617c7f9367dc005f932bd9d93bf45ba46072b
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

benchmark-overhead/gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ val asmVersion = "9.8"
4343
val jmhVersion = "1.37"
4444
val mockitoVersion = "4.11.0"
4545
val slf4jVersion = "2.0.17"
46-
val semConvVersion = "1.36.0"
46+
val semConvVersion = "1.37.0"
4747
val semConvAlphaVersion = semConvVersion.replaceFirst("(-rc.*)?$".toRegex(), "-alpha$1")
4848

4949
val CORE_DEPENDENCIES = listOf(

docs/instrumentation-list.yaml

Lines changed: 62 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ libraries:
923923
- name: aws-lambda-core-1.0
924924
description: |
925925
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.
926+
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`.
926927
source_path: instrumentation/aws-lambda/aws-lambda-core-1.0
927928
scope:
928929
name: io.opentelemetry.aws-lambda-core-1.0
@@ -945,7 +946,7 @@ libraries:
945946
type: STRING
946947
- name: aws-lambda-events-2.2
947948
description: |
948-
Provides full instrumentation of the Lambda library, including standard and custom event types, from `aws-lambda-java-events` 2.2+.
949+
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.
949950
source_path: instrumentation/aws-lambda/aws-lambda-events-2.2
950951
scope:
951952
name: io.opentelemetry.aws-lambda-events-2.2
@@ -960,6 +961,11 @@ libraries:
960961
description: Flush timeout in milliseconds.
961962
type: int
962963
default: 10000
964+
- name: otel.instrumentation.http.known-methods
965+
description: |
966+
Configures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as `_OTHER`.
967+
type: list
968+
default: CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE
963969
telemetry:
964970
- when: default
965971
spans:
@@ -984,13 +990,51 @@ libraries:
984990
- name: user_agent.original
985991
type: STRING
986992
- name: aws-lambda-events-3.11
993+
description: |
994+
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.
987995
source_path: instrumentation/aws-lambda/aws-lambda-events-3.11
988996
scope:
989997
name: io.opentelemetry.aws-lambda-events-3.11
990998
target_versions:
991999
library:
9921000
- com.amazonaws:aws-lambda-java-events:3.11.0
9931001
- com.amazonaws:aws-lambda-java-core:1.0.0
1002+
configurations:
1003+
- name: otel.instrumentation.aws-lambda.flush-timeout
1004+
description: Flush timeout in milliseconds.
1005+
type: int
1006+
default: 10000
1007+
telemetry:
1008+
- when: default
1009+
spans:
1010+
- span_kind: CONSUMER
1011+
attributes:
1012+
- name: messaging.destination.name
1013+
type: STRING
1014+
- name: messaging.message.id
1015+
type: STRING
1016+
- name: messaging.operation
1017+
type: STRING
1018+
- name: messaging.system
1019+
type: STRING
1020+
- span_kind: SERVER
1021+
attributes:
1022+
- name: cloud.account.id
1023+
type: STRING
1024+
- name: cloud.resource_id
1025+
type: STRING
1026+
- name: faas.invocation_id
1027+
type: STRING
1028+
- name: faas.trigger
1029+
type: STRING
1030+
- name: http.request.method
1031+
type: STRING
1032+
- name: http.response.status_code
1033+
type: LONG
1034+
- name: url.full
1035+
type: STRING
1036+
- name: user_agent.original
1037+
type: STRING
9941038
- name: aws-sdk-1.11
9951039
description: |
9961040
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.
@@ -1279,7 +1323,7 @@ libraries:
12791323
type: STRING
12801324
- name: gen_ai.request.model
12811325
type: STRING
1282-
- name: gen_ai.system
1326+
- name: gen_ai.provider.name
12831327
type: STRING
12841328
- name: gen_ai.client.token.usage
12851329
description: Measures number of input and output tokens used.
@@ -1290,7 +1334,7 @@ libraries:
12901334
type: STRING
12911335
- name: gen_ai.request.model
12921336
type: STRING
1293-
- name: gen_ai.system
1337+
- name: gen_ai.provider.name
12941338
type: STRING
12951339
- name: gen_ai.token.type
12961340
type: STRING
@@ -1353,7 +1397,7 @@ libraries:
13531397
type: DOUBLE
13541398
- name: gen_ai.response.finish_reasons
13551399
type: STRING_ARRAY
1356-
- name: gen_ai.system
1400+
- name: gen_ai.provider.name
13571401
type: STRING
13581402
- name: gen_ai.usage.input_tokens
13591403
type: LONG
@@ -3964,6 +4008,16 @@ libraries:
39644008
target_versions:
39654009
library:
39664010
- org.apache.kafka:kafka-clients:2.6.0
4011+
configurations:
4012+
- name: otel.instrumentation.messaging.experimental.capture-headers
4013+
description: A comma-separated list of header names to capture as span attributes.
4014+
type: list
4015+
default: ''
4016+
- name: otel.instrumentation.messaging.experimental.receive-telemetry.enabled
4017+
description: |
4018+
Enables experimental receive telemetry, which will cause consumers to start a new trace, with only a span link connecting it to the producer trace.
4019+
type: boolean
4020+
default: false
39674021
- name: kafka-streams-0.11
39684022
source_path: instrumentation/kafka/kafka-streams-0.11
39694023
scope:
@@ -4649,7 +4703,7 @@ libraries:
46494703
type: STRING
46504704
- name: gen_ai.response.model
46514705
type: STRING
4652-
- name: gen_ai.system
4706+
- name: gen_ai.provider.name
46534707
type: STRING
46544708
- name: gen_ai.client.token.usage
46554709
description: Measures number of input and output tokens used.
@@ -4662,7 +4716,7 @@ libraries:
46624716
type: STRING
46634717
- name: gen_ai.response.model
46644718
type: STRING
4665-
- name: gen_ai.system
4719+
- name: gen_ai.provider.name
46664720
type: STRING
46674721
- name: gen_ai.token.type
46684722
type: STRING
@@ -4677,7 +4731,7 @@ libraries:
46774731
type: STRING
46784732
- name: gen_ai.response.model
46794733
type: STRING
4680-
- name: gen_ai.system
4734+
- name: gen_ai.provider.name
46814735
type: STRING
46824736
- name: gen_ai.usage.input_tokens
46834737
type: LONG
@@ -4707,7 +4761,7 @@ libraries:
47074761
type: STRING
47084762
- name: gen_ai.response.model
47094763
type: STRING
4710-
- name: gen_ai.system
4764+
- name: gen_ai.provider.name
47114765
type: STRING
47124766
- name: gen_ai.usage.input_tokens
47134767
type: LONG
1.65 KB
Binary file not shown.

examples/distro/gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=bd71102213493060956ec229d946beee57158dbd89d0e62b91bca0fa2c5f3531
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionSha256Sum=8fad3d78296ca518113f3d29016617c7f9367dc005f932bd9d93bf45ba46072b
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

examples/distro/gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
1.65 KB
Binary file not shown.

0 commit comments

Comments
 (0)