Skip to content

Commit 579ec04

Browse files
committed
Merge branch 'main' of github.com:jaydeluca/opentelemetry-java-instrumentation into continue-modules
2 parents 9cddaa7 + 94d2c0f commit 579ec04

File tree

161 files changed

+4702
-1686
lines changed

Some content is hidden

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

161 files changed

+4702
-1686
lines changed

.fossa.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,9 +958,6 @@ targets:
958958
- type: gradle
959959
path: ./
960960
target: ':instrumentation:vertx:vertx-rx-java-3.5:javaagent'
961-
- type: gradle
962-
path: ./
963-
target: ':instrumentation:vertx:vertx-sql-client-4.0:javaagent'
964961
- type: gradle
965962
path: ./
966963
target: ':instrumentation:vertx:vertx-web-3.0:javaagent'
@@ -1120,6 +1117,15 @@ targets:
11201117
- type: gradle
11211118
path: ./
11221119
target: ':instrumentation:vertx:vertx-http-client:vertx-http-client-common:javaagent'
1120+
- type: gradle
1121+
path: ./
1122+
target: ':instrumentation:vertx:vertx-sql-client:vertx-sql-client-4.0:javaagent'
1123+
- type: gradle
1124+
path: ./
1125+
target: ':instrumentation:vertx:vertx-sql-client:vertx-sql-client-5.0:javaagent'
1126+
- type: gradle
1127+
path: ./
1128+
target: ':instrumentation:vertx:vertx-sql-client:vertx-sql-client-common:javaagent'
11231129

11241130
experimental:
11251131
gradle:

.github/workflows/auto-license-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
java-version-file: .java-version
2929

3030
- name: Set up gradle
31-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
31+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
3232
with:
3333
cache-read-only: true
3434

.github/workflows/auto-spotless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
java-version-file: .java-version
2929

3030
- name: Set up gradle
31-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
31+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
3232
with:
3333
cache-read-only: true
3434

.github/workflows/auto-update-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
pull-requests: write
1919
steps:
2020
- name: Download patch
21-
uses: actions/[email protected]
21+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
2222
with:
2323
run-id: ${{ github.event.workflow_run.id }}
2424
path: ${{ runner.temp }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ derby.log
5757
hs_err_pid*
5858
replay_pid*
5959
.attach_pid*
60+
**/.telemetry*
6061

6162
!java-agent/benchmark/releases/*.jar
6263

benchmark-overhead/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id("java")
3-
id("com.diffplug.spotless") version "7.0.3"
3+
id("com.diffplug.spotless") version "7.0.4"
44
}
55

66
spotless {

conventions/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
`kotlin-dsl`
33
// When updating, update below in dependencies too
4-
id("com.diffplug.spotless") version "7.0.3"
4+
id("com.diffplug.spotless") version "7.0.4"
55
}
66

77
spotless {
@@ -54,12 +54,12 @@ dependencies {
5454
implementation("org.apache.maven:maven-aether-provider:3.3.9")
5555

5656
// When updating, update above in plugins too
57-
implementation("com.diffplug.spotless:spotless-plugin-gradle:7.0.3")
57+
implementation("com.diffplug.spotless:spotless-plugin-gradle:7.0.4")
5858
implementation("com.google.guava:guava:33.4.8-jre")
5959
implementation("gradle.plugin.com.google.protobuf:protobuf-gradle-plugin:0.8.18")
6060
implementation("com.gradleup.shadow:shadow-gradle-plugin:8.3.6")
6161
implementation("org.apache.httpcomponents:httpclient:4.5.14")
62-
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:4.0.1")
62+
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:4.0.2")
6363
implementation("org.owasp:dependency-check-gradle:12.1.1")
6464
implementation("ru.vyarus:gradle-animalsniffer-plugin:2.0.1")
6565
implementation("org.spdx:spdx-gradle-plugin:0.9.0")

conventions/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ dependencies {
161161
compileOnly("com.google.errorprone:error_prone_annotations")
162162

163163
codenarc("org.codenarc:CodeNarc:3.6.0")
164-
codenarc(platform("org.codehaus.groovy:groovy-bom:3.0.24"))
164+
codenarc(platform("org.codehaus.groovy:groovy-bom:3.0.25"))
165165

166166
modules {
167167
// checkstyle uses the very old google-collections which causes Java 9 module conflict with

dependencyManagement/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ val otelContribVersion = "1.46.0-alpha"
1010
val otelSdkAlphaVersion = otelSdkVersion.replaceFirst("(-SNAPSHOT)?$".toRegex(), "-alpha$1")
1111

1212
// Need both BOM and groovy jars
13-
val groovyVersion = "4.0.26"
13+
val groovyVersion = "4.0.27"
1414

1515
// We don't force libraries we instrument to new versions since we compile and test against specific
1616
// old baseline versions but we do try to force those libraries' transitive dependencies to new
@@ -28,7 +28,7 @@ val DEPENDENCY_BOMS = listOf(
2828
// even if they are only used by test dependencies, so not using junit bom since it is LGPL
2929

3030
"com.fasterxml.jackson:jackson-bom:2.19.0",
31-
"com.squareup.okio:okio-bom:3.11.0", // see https://github.com/open-telemetry/opentelemetry-java/issues/5637
31+
"com.squareup.okio:okio-bom:3.12.0", // see https://github.com/open-telemetry/opentelemetry-java/issues/5637
3232
"com.google.guava:guava-bom:33.4.8-jre",
3333
"org.apache.groovy:groovy-bom:${groovyVersion}",
3434
"io.opentelemetry:opentelemetry-bom:${otelSdkVersion}",
@@ -91,7 +91,7 @@ val DEPENDENCIES = listOf(
9191
"com.github.stefanbirkner:system-rules:1.19.0",
9292
"uk.org.webcompere:system-stubs-jupiter:2.0.3",
9393
"com.uber.nullaway:nullaway:0.12.7",
94-
"commons-beanutils:commons-beanutils:1.10.1",
94+
"commons-beanutils:commons-beanutils:1.11.0",
9595
"commons-cli:commons-cli:1.9.0",
9696
"commons-codec:commons-codec:1.18.0",
9797
"commons-collections:commons-collections:3.2.2",

docs/instrumentation-list.yaml

Lines changed: 64 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,46 @@ libraries:
5454
- com.alibaba:druid:(,)
5555
library:
5656
- com.alibaba:druid:1.0.0
57+
metrics:
58+
- name: db.client.connections.usage
59+
description: The number of connections that are currently in state described
60+
by the state attribute.
61+
type: LONG_SUM
62+
unit: connections
63+
attributes:
64+
- name: pool.name
65+
type: STRING
66+
- name: state
67+
type: STRING
68+
- name: db.client.connections.pending_requests
69+
description: The number of pending requests for an open connection, cumulative
70+
for the entire pool.
71+
type: LONG_SUM
72+
unit: requests
73+
attributes:
74+
- name: pool.name
75+
type: STRING
76+
- name: db.client.connections.max
77+
description: The maximum number of open connections allowed.
78+
type: LONG_SUM
79+
unit: connections
80+
attributes:
81+
- name: pool.name
82+
type: STRING
83+
- name: db.client.connections.idle.min
84+
description: The minimum number of idle open connections allowed.
85+
type: LONG_SUM
86+
unit: connections
87+
attributes:
88+
- name: pool.name
89+
type: STRING
90+
- name: db.client.connections.idle.max
91+
description: The maximum number of idle open connections allowed.
92+
type: LONG_SUM
93+
unit: connections
94+
attributes:
95+
- name: pool.name
96+
type: STRING
5797
apache:
5898
- name: apache-shenyu-2.4
5999
source_path: instrumentation/apache-shenyu-2.4
@@ -831,7 +871,7 @@ libraries:
831871
services.
832872
type: map
833873
default: ''
834-
- name: otel.instrumentation.jdbc.capture-query-parameters
874+
- name: otel.instrumentation.jdbc.experimental.capture-query-parameters
835875
description: |
836876
Sets whether the query parameters should be captured as span attributes named <code>db.query.parameter.&lt;key&gt;</code>. Enabling this option disables the statement sanitization.<p>WARNING: captured query parameters may contain sensitive information such as passwords, personally identifiable information or protected health info.
837877
type: boolean
@@ -1910,6 +1950,22 @@ libraries:
19101950
target_versions:
19111951
javaagent:
19121952
- io.vertx:vertx-redis-client:[4.0.0,)
1953+
- name: vertx-sql-client-5.0
1954+
source_path: instrumentation/vertx/vertx-sql-client/vertx-sql-client-5.0
1955+
minimum_java_version: 11
1956+
scope:
1957+
name: io.opentelemetry.vertx-sql-client-5.0
1958+
target_versions:
1959+
javaagent:
1960+
- io.vertx:vertx-sql-client:[5.0.0,)
1961+
- name: vertx-http-client-5.0
1962+
source_path: instrumentation/vertx/vertx-http-client/vertx-http-client-5.0
1963+
minimum_java_version: 11
1964+
scope:
1965+
name: io.opentelemetry.vertx-http-client-5.0
1966+
target_versions:
1967+
javaagent:
1968+
- io.vertx:vertx-core:[5.0.0,)
19131969
- name: vertx-web-3.0
19141970
source_path: instrumentation/vertx/vertx-web-3.0
19151971
scope:
@@ -1918,19 +1974,19 @@ libraries:
19181974
javaagent:
19191975
- io.vertx:vertx-web:[3.0.0,)
19201976
- name: vertx-sql-client-4.0
1921-
source_path: instrumentation/vertx/vertx-sql-client-4.0
1977+
source_path: instrumentation/vertx/vertx-sql-client/vertx-sql-client-4.0
19221978
scope:
19231979
name: io.opentelemetry.vertx-sql-client-4.0
19241980
target_versions:
19251981
javaagent:
1926-
- io.vertx:vertx-sql-client:[4.0.0,)
1982+
- io.vertx:vertx-sql-client:[4.0.0,5)
19271983
- name: vertx-http-client-4.0
19281984
source_path: instrumentation/vertx/vertx-http-client/vertx-http-client-4.0
19291985
scope:
19301986
name: io.opentelemetry.vertx-http-client-4.0
19311987
target_versions:
19321988
javaagent:
1933-
- io.vertx:vertx-core:[4.0.0,)
1989+
- io.vertx:vertx-core:[4.0.0,5)
19341990
- name: vertx-rx-java-3.5
19351991
source_path: instrumentation/vertx/vertx-rx-java-3.5
19361992
scope:
@@ -2051,6 +2107,10 @@ internal:
20512107
source_path: instrumentation/opentelemetry-api/opentelemetry-api-1.32
20522108
scope:
20532109
name: io.opentelemetry.opentelemetry-api-1.32
2110+
- name: opentelemetry-api-1.50
2111+
source_path: instrumentation/opentelemetry-api/opentelemetry-api-1.50
2112+
scope:
2113+
name: io.opentelemetry.opentelemetry-api-1.50
20542114
- name: opentelemetry-api-1.42
20552115
source_path: instrumentation/opentelemetry-api/opentelemetry-api-1.42
20562116
scope:

0 commit comments

Comments
 (0)