Skip to content

Commit a01fa94

Browse files
committed
Merge remote-tracking branch 'upstream/main' into rename-ktor-tracing
2 parents 6260a86 + f7472b7 commit a01fa94

File tree

57 files changed

+1542
-216
lines changed

Some content is hidden

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

57 files changed

+1542
-216
lines changed

.github/workflows/codeql-daily.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
java-version-file: .java-version
3131

3232
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
33+
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
3434
with:
3535
languages: java
3636
# using "latest" helps to keep up with the latest Kotlin support
@@ -45,7 +45,7 @@ jobs:
4545
run: ./gradlew assemble -x javadoc --no-build-cache --no-daemon
4646

4747
- name: Perform CodeQL analysis
48-
uses: github/codeql-action/analyze@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
48+
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
4949

5050
workflow-notification:
5151
needs:

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ jobs:
6464

6565
# Upload the results to GitHub's code scanning dashboard.
6666
- name: "Upload to code-scanning"
67-
uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
67+
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
6868
with:
6969
sarif_file: results.sarif

benchmark-overhead/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repositories {
1616
}
1717

1818
dependencies {
19-
implementation(enforcedPlatform("org.junit:junit-bom:5.11.3"))
19+
implementation(enforcedPlatform("org.junit:junit-bom:5.11.4"))
2020

2121
testImplementation("org.testcontainers:testcontainers:1.20.4")
2222
testImplementation("org.testcontainers:postgresql:1.20.4")

conventions/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ dependencies {
6464
implementation("ru.vyarus:gradle-animalsniffer-plugin:1.7.2")
6565
implementation("org.spdx:spdx-gradle-plugin:0.8.0")
6666
// When updating, also update dependencyManagement/build.gradle.kts
67-
implementation("net.bytebuddy:byte-buddy-gradle-plugin:1.15.10")
67+
implementation("net.bytebuddy:byte-buddy-gradle-plugin:1.15.11")
6868
implementation("gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.9.6")
6969
implementation("me.champeau.jmh:jmh-gradle-plugin:0.7.2")
7070
implementation("net.ltgt.gradle:gradle-errorprone-plugin:4.1.0")
7171
implementation("net.ltgt.gradle:gradle-nullaway-plugin:2.1.0")
7272
implementation("me.champeau.gradle:japicmp-gradle-plugin:0.4.5")
7373

74-
testImplementation(enforcedPlatform("org.junit:junit-bom:5.11.3"))
74+
testImplementation(enforcedPlatform("org.junit:junit-bom:5.11.4"))
7575
testImplementation("org.junit.jupiter:junit-jupiter-api")
7676
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
7777
testImplementation("org.assertj:assertj-core:3.26.3")

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

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

dependencyManagement/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rootProject.extra["versions"] = dependencyVersions
99

1010
// this line is managed by .github/scripts/update-sdk-version.sh
1111
val otelSdkVersion = "1.45.0"
12-
val otelContribVersion = "1.41.0-alpha"
12+
val otelContribVersion = "1.42.0-alpha"
1313
val otelSdkAlphaVersion = otelSdkVersion.replaceFirst("(-SNAPSHOT)?$".toRegex(), "-alpha$1")
1414

1515
// Need both BOM and groovy jars
@@ -33,15 +33,15 @@ 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.junit:junit-bom:5.11.3",
36+
"org.junit:junit-bom:5.11.4",
3737
"org.testcontainers:testcontainers-bom:1.20.4",
3838
"org.spockframework:spock-bom:2.4-M4-groovy-4.0"
3939
)
4040

4141
val autoServiceVersion = "1.1.1"
4242
val autoValueVersion = "1.11.0"
4343
val errorProneVersion = "2.36.0"
44-
val byteBuddyVersion = "1.15.10"
44+
val byteBuddyVersion = "1.15.11"
4545
val asmVersion = "9.7.1"
4646
val jmhVersion = "1.37"
4747
val mockitoVersion = "4.11.0"
@@ -87,7 +87,7 @@ val DEPENDENCIES = listOf(
8787
"com.github.stefanbirkner:system-lambda:1.2.1",
8888
"com.github.stefanbirkner:system-rules:1.19.0",
8989
"uk.org.webcompere:system-stubs-jupiter:2.0.3",
90-
"com.uber.nullaway:nullaway:0.12.1",
90+
"com.uber.nullaway:nullaway:0.12.2",
9191
"commons-beanutils:commons-beanutils:1.9.4",
9292
"commons-cli:commons-cli:1.9.0",
9393
"commons-codec:commons-codec:1.17.1",

docs/contributing/writing-instrumentation.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,47 @@ include("instrumentation:yarpc-1.0:library")
6868
include("instrumentation:yarpc-1.0:testing")
6969
```
7070

71+
### Instrumentation Submodules
72+
73+
When writing instrumentation that requires submodules for different versions, the name of each
74+
submodule must be prefixed with the name of the parent directory (typically the library or
75+
framework name).
76+
77+
As an example, if `yarpc` has instrumentation for two different versions, each version submodule
78+
must include the `yarpc` prefix before the version:
79+
80+
```
81+
instrumentation ->
82+
...
83+
yarpc ->
84+
yarpc-1.0 ->
85+
javaagent
86+
build.gradle.kts
87+
library
88+
build.gradle.kts
89+
testing
90+
build.gradle.kts
91+
yarpc-2.0 ->
92+
javaagent
93+
build.gradle.kts
94+
library
95+
build.gradle.kts
96+
testing
97+
build.gradle.kts
98+
```
99+
100+
After creating the submodules, they must be registered in the settings.gradle.kts file. Include each
101+
submodule explicitly to ensure it is recognized and built as part of the project. For example:
102+
103+
```kotlin
104+
include(":instrumentation:yarpc:yarpc-1.0:javaagent")
105+
include(":instrumentation:yarpc:yarpc-1.0:library")
106+
include(":instrumentation:yarpc:yarpc-1.0:testing")
107+
include(":instrumentation:yarpc:yarpc-2.0:javaagent")
108+
include(":instrumentation:yarpc:yarpc-2.0:library")
109+
include(":instrumentation:yarpc:yarpc-2.0:testing")
110+
```
111+
71112
## Writing library instrumentation
72113

73114
Start by creating the `build.gradle.kts` file in the `library`

examples/distro/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ subprojects {
3434
opentelemetryJavaagentAlpha: "2.11.0-alpha-SNAPSHOT",
3535

3636
autoservice : "1.1.1",
37-
junit : "5.11.3"
37+
junit : "5.11.4"
3838
]
3939

4040
deps = [

examples/extension/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ext {
2929
opentelemetryJavaagent : "2.11.0-SNAPSHOT",
3030
opentelemetryJavaagentAlpha: "2.11.0-alpha-SNAPSHOT",
3131

32-
junit : "5.11.3"
32+
junit : "5.11.4"
3333
]
3434

3535
deps = [

gradle-plugins/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ configurations.named("compileOnly") {
2424
extendsFrom(bbGradlePlugin)
2525
}
2626

27-
val byteBuddyVersion = "1.15.10"
27+
val byteBuddyVersion = "1.15.11"
2828
val aetherVersion = "1.1.0"
2929

3030
dependencies {
@@ -43,7 +43,7 @@ dependencies {
4343

4444
testImplementation("org.assertj:assertj-core:3.26.3")
4545

46-
testImplementation(enforcedPlatform("org.junit:junit-bom:5.11.3"))
46+
testImplementation(enforcedPlatform("org.junit:junit-bom:5.11.4"))
4747
testImplementation("org.junit.jupiter:junit-jupiter-api")
4848
testImplementation("org.junit.jupiter:junit-jupiter-params")
4949
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")

0 commit comments

Comments
 (0)