Skip to content

Commit 54ad46a

Browse files
committed
Merge remote-tracking branch 'upstream/main' into javahttpclient
2 parents de1cd18 + a2b06f6 commit 54ad46a

File tree

13 files changed

+28
-16
lines changed

13 files changed

+28
-16
lines changed

.github/workflows/auto-update-otel-sdk.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
- name: Use CLA approved bot
8585
run: .github/scripts/use-cla-approved-bot.sh
8686

87-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
87+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
8888
id: otelbot-token
8989
with:
9090
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/backport.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Use CLA approved bot
3030
run: .github/scripts/use-cla-approved-bot.sh
3131

32-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
32+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
3333
id: otelbot-token
3434
with:
3535
app-id: ${{ vars.OTELBOT_APP_ID }}
@@ -48,7 +48,14 @@ jobs:
4848
4949
git checkout -b $branch
5050
git cherry-pick $commit
51+
52+
# note this push will fail if the backport contains any workflow files
53+
# because secrets.GITHUB_TOKEN doesn't have this permission
54+
# supporting this would require another access token with content write
55+
# and workflow write permissions
56+
# so for now at least PRs that update workflow files need to be backported manually
5157
git push --set-upstream origin $branch
58+
5259
gh pr create --title "[$GITHUB_REF_NAME] $title" \
5360
--body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
5461
--base $GITHUB_REF_NAME

.github/workflows/prepare-patch-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Use CLA approved bot
5252
run: .github/scripts/use-cla-approved-bot.sh
5353

54-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
54+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
5555
id: otelbot-token
5656
with:
5757
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/prepare-release-branch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Use CLA approved bot
6464
run: .github/scripts/use-cla-approved-bot.sh
6565

66-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
66+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
6767
id: otelbot-token
6868
with:
6969
app-id: ${{ vars.OTELBOT_APP_ID }}
@@ -120,7 +120,7 @@ jobs:
120120
- name: Use CLA approved bot
121121
run: .github/scripts/use-cla-approved-bot.sh
122122

123-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
123+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
124124
id: otelbot-token
125125
with:
126126
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/release-update-cloudfoundry-index.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# need to run this script before we switch branches
2323
# since the script doesn't exist on the cloudfoundry branch
2424
- name: Use CLA approved github bot
25-
run: .github/scripts/use-cla-approved-github-bot.sh
25+
run: .github/scripts/use-cla-approved-bot.sh
2626

2727
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828
with:
@@ -44,7 +44,7 @@ jobs:
4444
- name: display changes
4545
run: git diff
4646

47-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
47+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
4848
id: otelbot-token
4949
with:
5050
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/release.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
--notes-file /tmp/release-notes.txt \
182182
v$VERSION \
183183
opentelemetry-javaagent.jar \
184-
opentelemetry-javaagent.asc.jar \
184+
opentelemetry-javaagent.jar.asc \
185185
opentelemetry-java-instrumentation-SBOM.zip
186186
187187
# these are used as job outputs
@@ -219,7 +219,7 @@ jobs:
219219
- name: Use CLA approved bot
220220
run: .github/scripts/use-cla-approved-bot.sh
221221

222-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
222+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
223223
id: otelbot-token
224224
with:
225225
app-id: ${{ vars.OTELBOT_APP_ID }}
@@ -253,6 +253,8 @@ jobs:
253253
--base main
254254
255255
update-apidiff-baseline-to-released-version:
256+
permissions:
257+
contents: write # for git push to PR branch
256258
runs-on: ubuntu-latest
257259
needs:
258260
- release
@@ -286,7 +288,7 @@ jobs:
286288
- name: Use CLA approved bot
287289
run: .github/scripts/use-cla-approved-bot.sh
288290

289-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
291+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
290292
id: otelbot-token
291293
with:
292294
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/reusable-native-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
- id: read-java
2323
run: echo "version=$(cat .java-version)" >> "$GITHUB_OUTPUT"
24-
- uses: graalvm/setup-graalvm@aafbedb8d382ed0ca6167d3a051415f20c859274 # v1.2.8.1
24+
- uses: graalvm/setup-graalvm@b0cb26a8da53cb3e97cdc0c827d8e3071240e730 # v1.3.1.1
2525
with:
2626
version: "latest"
2727
java-version: "${{ steps.read-java.outputs.version }}"

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
`io.opentelemetry.instrumentation.httpclient` was deprecated in favor of the new package name
99
`io.opentelemetry.instrumentation.javahttpclient`
1010

11-
## Version 2.13.0 (2025-02-14)
11+
## Version 2.13.0 (2025-02-17)
1212

1313
### Migration notes
1414

benchmark-overhead/Dockerfile.petclinic

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:11.0.26_4-jdk@sha256:88ffb69a9a26d1b6c56897cb2e34aecf31d67f575d50620a00b54c543eae271e as app-build
1+
FROM eclipse-temurin:11.0.26_4-jdk@sha256:0fce1ebca683486d57432c42b8a9764c3fe0b18ae092746248fac258ad05ee00 as app-build
22

33
# This is the base image that will contain a built version of the spring-petclinic-rest
44
# application. Installing the dependencies and maven compiling the application is time

conventions/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies {
6060
implementation("com.gradleup.shadow:shadow-gradle-plugin:8.3.6")
6161
implementation("org.apache.httpcomponents:httpclient:4.5.14")
6262
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:3.19.1")
63-
implementation("org.owasp:dependency-check-gradle:12.0.2")
63+
implementation("org.owasp:dependency-check-gradle:12.1.0")
6464
implementation("ru.vyarus:gradle-animalsniffer-plugin:2.0.0")
6565
implementation("org.spdx:spdx-gradle-plugin:0.8.0")
6666
// When updating, also update dependencyManagement/build.gradle.kts

instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java8/Java8RuntimeMetricsInstaller.java

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public class Java8RuntimeMetricsInstaller implements AgentListener {
1919

2020
@Override
2121
public void afterAgent(AutoConfiguredOpenTelemetrySdk autoConfiguredSdk) {
22+
if (Double.parseDouble(System.getProperty("java.specification.version")) >= 17) {
23+
return;
24+
}
25+
2226
RuntimeMetrics runtimeMetrics =
2327
RuntimeMetricsConfigUtil.configure(
2428
RuntimeMetrics.builder(GlobalOpenTelemetry.get()), AgentInstrumentationConfig.get());

settings.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ pluginManagement {
77
id("org.jetbrains.kotlin.jvm") version "2.1.10"
88
id("org.xbib.gradle.plugin.jflex") version "3.0.2"
99
id("org.unbroken-dome.xjc") version "2.0.0"
10-
// See https://github.com/graalvm/native-build-tools/issues/626
1110
id("org.graalvm.buildtools.native") version "0.10.5"
1211
}
1312
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM eclipse-temurin:11.0.26_4-jdk-windowsservercore-ltsc2022@sha256:74ae05a1990060243da67eece1c5f1d16a8235464a8b1ff97ea82338eff84f46
1+
FROM eclipse-temurin:11.0.26_4-jdk-windowsservercore-ltsc2022@sha256:23863560d1c34098a0e4e3effb1bdeab73639c404183441e112067c782b4a351
22
COPY fake-backend.jar /fake-backend.jar
33
CMD ["java", "-jar", "/fake-backend.jar"]

0 commit comments

Comments
 (0)