Skip to content

Commit 7865580

Browse files
committed
Merge branch 'main' into vertx-rx-5
2 parents e419e25 + 4107e8a commit 7865580

File tree

94 files changed

+3462
-2862
lines changed

Some content is hidden

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

94 files changed

+3462
-2862
lines changed

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

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,10 @@ jobs:
4343
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4444
if: steps.unzip-patch.outputs.exists == 'true'
4545
with:
46+
repository: "${{ github.event.workflow_run.head_repository.full_name }}"
47+
ref: "${{ github.event.workflow_run.head_branch }}"
4648
token: ${{ steps.otelbot-token.outputs.token }}
4749

48-
- id: get-pr
49-
if: steps.unzip-patch.outputs.exists == 'true'
50-
name: Get PR
51-
env:
52-
PR_BRANCH: |-
53-
${{
54-
(github.event.workflow_run.head_repository.owner.login != github.event.workflow_run.repository.owner.login)
55-
&& format('{0}:{1}', github.event.workflow_run.head_repository.owner.login, github.event.workflow_run.head_branch)
56-
|| github.event.workflow_run.head_branch
57-
}}
58-
GH_TOKEN: ${{ github.token }}
59-
run: |
60-
echo gh pr view "${PR_BRANCH}" --json number --jq .number
61-
number=$(gh pr view "${PR_BRANCH}" --json number --jq .number)
62-
echo $number
63-
echo "number=$number" >> $GITHUB_OUTPUT
64-
65-
- name: Check out PR branch
66-
if: steps.unzip-patch.outputs.exists == 'true'
67-
env:
68-
GH_TOKEN: ${{ github.token }}
69-
run: gh pr checkout ${{ steps.get-pr.outputs.number }}
70-
7150
- name: Use CLA approved github bot
7251
if: steps.unzip-patch.outputs.exists == 'true'
7352
# IMPORTANT do not call the .github/scripts/use-cla-approved-bot.sh
@@ -83,14 +62,34 @@ jobs:
8362
git commit -a -m "./gradlew spotlessApply"
8463
git push
8564
65+
- id: get-pr
66+
if: steps.unzip-patch.outputs.exists == 'true'
67+
name: Get PR
68+
env:
69+
GH_REPO: ${{ github.repository }}
70+
GH_TOKEN: ${{ github.token }}
71+
PR_BRANCH: |-
72+
${{
73+
(github.event.workflow_run.head_repository.owner.login != github.event.workflow_run.repository.owner.login)
74+
&& format('{0}:{1}', github.event.workflow_run.head_repository.owner.login, github.event.workflow_run.head_branch)
75+
|| github.event.workflow_run.head_branch
76+
}}
77+
run: |
78+
number=$(gh pr view "$PR_BRANCH" --json number --jq .number)
79+
echo "number=$number" >> $GITHUB_OUTPUT
80+
8681
- if: steps.unzip-patch.outputs.exists == 'true' && success()
8782
env:
83+
GH_REPO: ${{ github.repository }}
8884
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
85+
PR_NUMBER: ${{ steps.get-pr.outputs.number }}
8986
run: |
90-
gh pr comment ${{ steps.get-pr.outputs.number }} --body "🔧 The result from spotlessApply was committed to the PR branch."
87+
gh pr comment $PR_NUMBER --body "🔧 The result from spotlessApply was committed to the PR branch."
9188
9289
- if: steps.unzip-patch.outputs.exists == 'true' && failure()
9390
env:
91+
GH_REPO: ${{ github.repository }}
9492
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
93+
PR_NUMBER: ${{ steps.get-pr.outputs.number }}
9594
run: |
96-
gh pr comment ${{ steps.get-pr.outputs.number }} --body "❌ The result from spotlessApply could not be committed to the PR branch, see logs: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID."
95+
gh pr comment $PR_NUMBER --body "❌ The result from spotlessApply could not be committed to the PR branch, see logs: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID."

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
persist-credentials: false
2525

26-
- uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
26+
- uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
2727
with:
2828
results_file: results.sarif
2929
results_format: sarif

.github/workflows/publish-petclinic-benchmark-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: echo "TS=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
3333

3434
- name: Push to GitHub packages
35-
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
35+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
3636
with:
3737
push: true
3838
file: benchmark-overhead/Dockerfile.petclinic

.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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ repositories {
1818
dependencies {
1919
implementation(enforcedPlatform("org.junit:junit-bom:5.12.2"))
2020

21-
testImplementation("org.testcontainers:testcontainers:1.21.0")
22-
testImplementation("org.testcontainers:postgresql:1.21.0")
21+
testImplementation("org.testcontainers:testcontainers:1.21.1")
22+
testImplementation("org.testcontainers:postgresql:1.21.1")
2323
testImplementation("org.junit.jupiter:junit-jupiter-api")
2424
testImplementation("org.junit.jupiter:junit-jupiter-params")
2525
testImplementation("com.squareup.okhttp3:okhttp:4.12.0")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ codenarc {
431431
checkstyle {
432432
configFile = rootProject.file("buildscripts/checkstyle.xml")
433433
// this version should match the version of google_checks.xml used as basis for above configuration
434-
toolVersion = "10.24.0"
434+
toolVersion = "10.25.0"
435435
maxWarnings = 0
436436
}
437437

dependencyManagement/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ val DEPENDENCY_BOMS = listOf(
3333
"org.apache.groovy:groovy-bom:${groovyVersion}",
3434
"io.opentelemetry:opentelemetry-bom:${otelSdkVersion}",
3535
"io.opentelemetry:opentelemetry-bom-alpha:${otelSdkAlphaVersion}",
36-
"org.testcontainers:testcontainers-bom:1.21.0"
36+
"org.testcontainers:testcontainers-bom:1.21.1"
3737
)
3838

3939
val autoServiceVersion = "1.1.1"
@@ -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:

examples/distro/smoke-tests/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ plugins {
33
}
44

55
dependencies {
6-
testImplementation("org.testcontainers:testcontainers:1.21.0")
6+
testImplementation("org.testcontainers:testcontainers:1.21.1")
77
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.19.0")
8-
testImplementation("com.google.protobuf:protobuf-java-util:4.31.0")
8+
testImplementation("com.google.protobuf:protobuf-java-util:4.31.1")
99
testImplementation("com.squareup.okhttp3:okhttp:4.12.0")
1010
testImplementation("io.opentelemetry.proto:opentelemetry-proto:1.7.0-alpha")
1111
testImplementation("io.opentelemetry:opentelemetry-api")

examples/extension/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ dependencies {
9797
implementation 'org.apache.commons:commons-lang3:3.17.0'
9898

9999
//All dependencies below are only for tests
100-
testImplementation("org.testcontainers:testcontainers:1.21.0")
100+
testImplementation("org.testcontainers:testcontainers:1.21.1")
101101
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.19.0")
102-
testImplementation("com.google.protobuf:protobuf-java-util:4.31.0")
102+
testImplementation("com.google.protobuf:protobuf-java-util:4.31.1")
103103
testImplementation("com.squareup.okhttp3:okhttp:4.12.0")
104104
testImplementation("io.opentelemetry:opentelemetry-api")
105105
testImplementation("io.opentelemetry.proto:opentelemetry-proto:1.7.0-alpha")

0 commit comments

Comments
 (0)