Skip to content

Commit 3b10ca2

Browse files
Merge branch 'otel_main' into add_metric_annotation_instrument
2 parents f92cd3e + d040a5e commit 3b10ca2

File tree

57 files changed

+1814
-248
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

+1814
-248
lines changed

.github/workflows/reusable-markdown-link-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# excluding links to pull requests and issues is done for performance
1818
args: >
1919
--include-fragments
20-
--exclude "^https://github.com/open-telemetry/opentelemetry-java-instrumentation/(issue|pull)/\\d+$"
20+
--exclude "^https://github.com/open-telemetry/opentelemetry-java-instrumentation/(issues|pull)/\\d+$"
2121
--exclude "^http://code.google.com/p/concurrentlinkedhashmap$"
2222
--max-retries 6
2323
.

benchmark-overhead/Dockerfile.petclinic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:11.0.26_4-jdk@sha256:dbec31f15dc815b1094e4e646c8b33b1e45f1ba8e7b0866b6fb3bbf396217487 as app-build
1+
FROM eclipse-temurin:11.0.26_4-jdk@sha256:8079494e381af731e6abea6123696a5051a054dbb18e5f7f1f73867b3179837f 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
@@ -13,7 +13,7 @@ RUN git checkout 8aa4d49
1313
RUN ./mvnw package -Dmaven.test.skip=true
1414
RUN cp target/spring-petclinic-rest*.jar /app/spring-petclinic-rest.jar
1515

16-
FROM bellsoft/liberica-openjdk-alpine:21.0.6@sha256:5f23f8082baea518a1657b420dbe19c181483255209b70af836543d6068fed8c
16+
FROM bellsoft/liberica-openjdk-alpine:21.0.7@sha256:143e4c24da2872fad6803fcbde5d335bbbe47dddb8ebf20fd916c02bdc7f463b
1717
COPY --from=app-build /app/spring-petclinic-rest.jar /app/spring-petclinic-rest.jar
1818
WORKDIR /app
1919
EXPOSE 9966

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.20.6")
22-
testImplementation("org.testcontainers:postgresql:1.20.6")
21+
testImplementation("org.testcontainers:testcontainers:1.21.0")
22+
testImplementation("org.testcontainers:postgresql:1.21.0")
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")

benchmark-overhead/src/test/java/io/opentelemetry/OverheadTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.io.IOException;
2323
import java.nio.file.Files;
2424
import java.nio.file.Path;
25+
import java.time.Duration;
2526
import java.util.HashMap;
2627
import java.util.List;
2728
import java.util.Map;
@@ -145,11 +146,11 @@ private void doWarmupPhase(TestConfig testConfig, GenericContainer<?> petclinic)
145146
System.currentTimeMillis() + TimeUnit.SECONDS.toMillis(testConfig.getWarmupSeconds());
146147
while (System.currentTimeMillis() < deadline) {
147148
GenericContainer<?> k6 =
148-
new GenericContainer<>(DockerImageName.parse("loadimpact/k6"))
149+
new GenericContainer<>(DockerImageName.parse("grafana/k6"))
149150
.withNetwork(NETWORK)
150151
.withCopyFileToContainer(MountableFile.forHostPath("./k6"), "/app")
151152
.withCommand("run", "-u", "5", "-i", "200", "/app/basic.js")
152-
.withStartupCheckStrategy(new OneShotStartupCheckStrategy());
153+
.withStartupCheckStrategy(new OneShotStartupCheckStrategy().withTimeout(Duration.ofMinutes(5)));
153154
k6.start();
154155
}
155156

benchmark-overhead/src/test/java/io/opentelemetry/containers/PetClinicRestContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private String[] buildCommandline(Optional<Path> agentJar) {
8787
"-Dotel.traces.exporter=otlp",
8888
"-Dotel.imr.export.interval=5000",
8989
"-Dotel.exporter.otlp.insecure=true",
90-
"-Dotel.exporter.otlp.endpoint=http://collector:4317",
90+
"-Dotel.exporter.otlp.endpoint=http://collector:4318",
9191
"-Dotel.resource.attributes=service.name=petclinic-otel-overhead"));
9292
result.addAll(this.agent.getAdditionalJvmArgs());
9393
agentJar.ifPresent(path -> result.add("-javaagent:/app/" + path.getFileName()));

conventions/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ dependencies {
6767
implementation("net.bytebuddy:byte-buddy-gradle-plugin:1.17.5")
6868
implementation("gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.9.6")
6969
implementation("me.champeau.jmh:jmh-gradle-plugin:0.7.3")
70-
implementation("net.ltgt.gradle:gradle-errorprone-plugin:4.1.0")
70+
implementation("net.ltgt.gradle:gradle-errorprone-plugin:4.2.0")
7171
implementation("net.ltgt.gradle:gradle-nullaway-plugin:2.2.0")
7272
implementation("me.champeau.gradle:japicmp-gradle-plugin:0.4.6")
7373

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ tasks {
6262
disable("UnnecessarilyFullyQualified")
6363

6464
// TODO (trask) use animal sniffer
65-
disable("Java7ApiChecker")
6665
disable("Java8ApiChecker")
6766
disable("AndroidJdkLibsChecker")
6867

@@ -124,8 +123,8 @@ tasks {
124123

125124
disable("NonFinalStaticField")
126125

127-
// We get this warning in modules that compile for old java versions
128-
disable("StringConcatToTextBlock")
126+
// Requires adding compile dependency to JSpecify
127+
disable("AddNullMarkedToPackageInfo")
129128

130129
if (testLatestDeps) {
131130
// Some latest dep tests are compiled for java 17 although the base version uses an older

dependencyManagement/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ 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.20.6"
36+
"org.testcontainers:testcontainers-bom:1.21.0"
3737
)
3838

3939
val autoServiceVersion = "1.1.1"
4040
val autoValueVersion = "1.11.0"
41-
val errorProneVersion = "2.37.0"
41+
val errorProneVersion = "2.38.0"
4242
val byteBuddyVersion = "1.17.5"
4343
val asmVersion = "9.8"
4444
val jmhVersion = "1.37"
@@ -82,8 +82,8 @@ val CORE_DEPENDENCIES = listOf(
8282
// this top level to help consistently satisfy large numbers of transitive dependencies.
8383
val DEPENDENCIES = listOf(
8484
"org.junit.jupiter:junit-jupiter-api:5.12.2",
85-
"org.spockframework:spock-core:2.4-M5-groovy-4.0",
86-
"org.spockframework:spock-junit4:2.4-M5-groovy-4.0",
85+
"org.spockframework:spock-core:2.4-M6-groovy-4.0",
86+
"org.spockframework:spock-junit4:2.4-M6-groovy-4.0",
8787

8888
"io.r2dbc:r2dbc-proxy:1.1.5.RELEASE",
8989
"ch.qos.logback:logback-classic:1.3.15", // 1.4+ requires Java 11+

examples/distro/smoke-tests/build.gradle

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

55
dependencies {
6-
testImplementation("org.testcontainers:testcontainers:1.20.6")
6+
testImplementation("org.testcontainers:testcontainers:1.21.0")
77
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.18.3")
88
testImplementation("com.google.protobuf:protobuf-java-util:4.30.2")
99
testImplementation("com.squareup.okhttp3:okhttp:4.12.0")

examples/extension/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ 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.20.6")
100+
testImplementation("org.testcontainers:testcontainers:1.21.0")
101101
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.18.3")
102102
testImplementation("com.google.protobuf:protobuf-java-util:4.30.2")
103103
testImplementation("com.squareup.okhttp3:okhttp:4.12.0")

0 commit comments

Comments
 (0)