Skip to content

Commit 9df7b13

Browse files
authored
Update to Otel 1.11 and other deps (#156)
* Update to OTel 1.11 and other deps * Update licenses
1 parent 798967d commit 9df7b13

File tree

137 files changed

+1588
-1841
lines changed

Some content is hidden

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

137 files changed

+1588
-1841
lines changed

dependencyManagement/build.gradle.kts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ data class DependencySet(val group: String, val version: String, val modules: Li
2626

2727
val TEST_SNAPSHOTS = rootProject.findProperty("testUpstreamSnapshots") == "true"
2828

29-
val otelVersion = "1.10.1"
30-
val otelSnapshotVersion = "1.11.0"
29+
val otelVersion = "1.11.1"
30+
val otelSnapshotVersion = "1.12.0"
3131

3232
val DEPENDENCY_BOMS = listOf(
33-
"com.amazonaws:aws-java-sdk-bom:1.12.141",
33+
"com.amazonaws:aws-java-sdk-bom:1.12.170",
3434
"com.fasterxml.jackson:jackson-bom:2.13.1",
35-
"com.google.guava:guava-bom:31.0.1-jre",
36-
"com.google.protobuf:protobuf-bom:3.19.3",
37-
"com.linecorp.armeria:armeria-bom:1.13.4",
38-
"io.grpc:grpc-bom:1.42.1",
35+
"com.google.guava:guava-bom:31.1-jre",
36+
"com.google.protobuf:protobuf-bom:3.19.4",
37+
"com.linecorp.armeria:armeria-bom:1.14.1",
38+
"io.grpc:grpc-bom:1.44.1",
3939
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${if (!TEST_SNAPSHOTS) "$otelVersion-alpha" else "$otelSnapshotVersion-alpha-SNAPSHOT"}",
40-
"org.apache.logging.log4j:log4j-bom:2.17.1",
40+
"org.apache.logging.log4j:log4j-bom:2.17.2",
4141
"org.junit:junit-bom:5.8.2",
42-
"org.springframework.boot:spring-boot-dependencies:2.6.2",
43-
"org.testcontainers:testcontainers-bom:1.16.2",
44-
"software.amazon.awssdk:bom:2.17.112"
42+
"org.springframework.boot:spring-boot-dependencies:2.6.4",
43+
"org.testcontainers:testcontainers-bom:1.16.3",
44+
"software.amazon.awssdk:bom:2.17.141"
4545
)
4646

4747
val DEPENDENCY_SETS = listOf(
@@ -57,7 +57,7 @@ val DEPENDENCY_SETS = listOf(
5757
),
5858
DependencySet(
5959
"org.slf4j",
60-
"1.7.33",
60+
"1.7.36",
6161
listOf(
6262
"slf4j-api",
6363
"slf4j-simple"
@@ -69,10 +69,10 @@ val DEPENDENCIES = listOf(
6969
"commons-logging:commons-logging:1.2",
7070
"com.sparkjava:spark-core:2.9.3",
7171
"com.squareup.okhttp3:okhttp:4.9.3",
72-
"io.opentelemetry.contrib:opentelemetry-aws-xray:1.9.0",
72+
"io.opentelemetry.contrib:opentelemetry-aws-xray:1.11.0",
7373
"io.opentelemetry.proto:opentelemetry-proto:0.11.0-alpha",
7474
"io.opentelemetry.javaagent:opentelemetry-javaagent:${if (!TEST_SNAPSHOTS) otelVersion else "$otelSnapshotVersion-SNAPSHOT"}",
75-
"net.bytebuddy:byte-buddy:1.12.7"
75+
"net.bytebuddy:byte-buddy:1.12.8"
7676
)
7777

7878
javaPlatform {

instrumentation/log4j-2.13.2/src/main/java/software/amazon/opentelemetry/javaagent/instrumentation/log4j_2_13_2/AwsXrayLog4jInstrumentationModule.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,12 @@ public List<TypeInstrumentation> typeInstrumentations() {
6161
public static class EmptyTypeInstrumentation implements TypeInstrumentation {
6262
@Override
6363
public ElementMatcher<TypeDescription> typeMatcher() {
64-
// we cannot use ContextDataProvider here because one of the classes that we inject implements
65-
// this interface, causing the interface to be loaded while it's being transformed, which
66-
// leads
67-
// to duplicate class definition error after the interface is transformed and the triggering
68-
// class loader tries to load it.
69-
return named("org.apache.logging.log4j.core.impl.ThreadContextDataInjector");
64+
return named("org.apache.logging.log4j.core.util.ContextDataProvider");
7065
}
7166

7267
@Override
7368
public void transform(TypeTransformer transformer) {
74-
// Nothing to instrument, no methods to match
69+
// Nothing to transform, this type instrumentation is only used for injecting resources.
7570
}
7671
}
7772
}

0 commit comments

Comments
 (0)