Skip to content

Commit 675db5f

Browse files
committed
Merge branch 'main' of github.com:open-telemetry/opentelemetry-java-instrumentation into semconv-stable-code
2 parents 8e74e0e + 866ffff commit 675db5f

File tree

6 files changed

+59
-26
lines changed

6 files changed

+59
-26
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Auto license report
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
check:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
21+
- name: Free disk space
22+
run: .github/scripts/gha-free-disk-space.sh
23+
24+
- name: Set up JDK for running Gradle
25+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
26+
with:
27+
distribution: temurin
28+
java-version-file: .java-version
29+
30+
- name: Set up gradle
31+
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
32+
with:
33+
cache-read-only: true
34+
35+
- name: Check out PR branch
36+
env:
37+
GH_TOKEN: ${{ github.token }}
38+
run: gh pr checkout ${{ github.event.pull_request.number }}
39+
40+
- name: Update license report
41+
run: ./gradlew generateLicenseReport --no-build-cache
42+
43+
- id: create-patch
44+
name: Create patch file
45+
run: |
46+
git diff > patch
47+
if [ -s patch ]; then
48+
echo "exists=true" >> "$GITHUB_OUTPUT"
49+
fi
50+
51+
- name: Upload patch file
52+
if: steps.create-patch.outputs.exists == 'true'
53+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
54+
with:
55+
path: patch
56+
name: patch

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
workflow_run:
44
workflows:
55
- "Auto spotless"
6+
- "Auto license report"
67
types:
78
- completed
89

examples/distro/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ subprojects {
6767
implementation(platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:${versions.opentelemetryJavaagent}"))
6868
implementation(platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${versions.opentelemetryJavaagentAlpha}"))
6969

70-
testImplementation("org.mockito:mockito-core:5.17.0")
70+
testImplementation("org.mockito:mockito-core:5.18.0")
7171

7272
testImplementation(enforcedPlatform("org.junit:junit-bom:5.12.2"))
7373
testImplementation("org.junit.jupiter:junit-jupiter-api")

instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilder.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,6 @@ public RuntimeMetricsBuilder emitExperimentalTelemetry() {
8282
return this;
8383
}
8484

85-
/**
86-
* Enable experimental JMX telemetry collection.
87-
*
88-
* @deprecated Use {@link #emitExperimentalTelemetry()} instead.
89-
*/
90-
@Deprecated
91-
@CanIgnoreReturnValue
92-
public RuntimeMetricsBuilder enableExperimentalJmxTelemetry() {
93-
emitExperimentalTelemetry = true;
94-
return this;
95-
}
96-
9785
/** Enable the capture of the jvm.gc.cause attribute with the jvm.gc.duration metric. */
9886
@CanIgnoreReturnValue
9987
public RuntimeMetricsBuilder captureGcCause() {

instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/RuntimeMetricsBuilder.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ public RuntimeMetricsBuilder emitExperimentalTelemetry() {
2929
return this;
3030
}
3131

32-
/**
33-
* Enable experimental JMX telemetry collection.
34-
*
35-
* @deprecated Use {@link #emitExperimentalTelemetry()} instead.
36-
*/
37-
@Deprecated
38-
@CanIgnoreReturnValue
39-
public RuntimeMetricsBuilder enableExperimentalJmxTelemetry() {
40-
emitExperimentalTelemetry = true;
41-
return this;
42-
}
43-
4432
/** Enable the capture of the jvm.gc.cause attribute with the jvm.gc.duration metric. */
4533
@CanIgnoreReturnValue
4634
public RuntimeMetricsBuilder captureGcCause() {

test-report/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
dependencies {
6-
implementation("com.google.api-client:google-api-client:2.7.2")
6+
implementation("com.google.api-client:google-api-client:2.8.0")
77
implementation("com.google.apis:google-api-services-sheets:v4-rev20250509-2.0.0")
88
implementation("com.google.auth:google-auth-library-oauth2-http:1.35.0")
99
}

0 commit comments

Comments
 (0)