Skip to content

Commit 076f6e7

Browse files
authored
Update to OTel 1.4.0 (#64)
1 parent 497f57f commit 076f6e7

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/AwsAgentProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
package software.amazon.opentelemetry.javaagent.providers;
1717

18-
import io.opentelemetry.javaagent.spi.config.PropertySource;
18+
import io.opentelemetry.javaagent.extension.config.ConfigPropertySource;
1919
import java.util.HashMap;
2020
import java.util.Map;
2121

22-
public class AwsAgentProperties implements PropertySource {
22+
public class AwsAgentProperties implements ConfigPropertySource {
2323
@Override
2424
public Map<String, String> getProperties() {
2525
Map<String, String> properties = new HashMap<>();

dependencyManagement/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ val DEPENDENCY_BOMS = listOf(
3333
"com.google.protobuf:protobuf-bom:3.17.0",
3434
"com.linecorp.armeria:armeria-bom:1.7.2",
3535
"io.grpc:grpc-bom:1.37.1",
36-
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${if (!TEST_SNAPSHOTS) "1.3.1-alpha" else "1.4.0-alpha-SNAPSHOT"}",
36+
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${if (!TEST_SNAPSHOTS) "1.4.0-alpha" else "1.5.0-alpha-SNAPSHOT"}",
3737
"org.apache.logging.log4j:log4j-bom:2.14.1",
3838
"org.junit:junit-bom:5.7.2",
3939
"org.springframework.boot:spring-boot-dependencies:2.4.5",
@@ -66,7 +66,7 @@ val DEPENDENCIES = listOf(
6666
"commons-logging:commons-logging:1.2",
6767
"com.sparkjava:spark-core:2.9.3",
6868
"com.squareup.okhttp3:okhttp:4.9.1",
69-
"io.opentelemetry.javaagent:opentelemetry-javaagent:${if (!TEST_SNAPSHOTS) "1.3.1" else "1.4.0-SNAPSHOT"}",
69+
"io.opentelemetry.javaagent:opentelemetry-javaagent:${if (!TEST_SNAPSHOTS) "1.4.0" else "1.5.0-SNAPSHOT"}",
7070
"net.bytebuddy:byte-buddy:1.11.0"
7171
)
7272

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
package software.amazon.opentelemetry.javaagent.instrumentation.log4j_2_13_2;
1717

18-
import static io.opentelemetry.javaagent.extension.matcher.ClassLoaderMatcher.hasClassesNamed;
18+
import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.hasClassesNamed;
1919
import static net.bytebuddy.matcher.ElementMatchers.named;
2020

2121
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;

instrumentation/logback-1.0/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ base.archivesBaseName = "aws-instrumentation-logback-1.0"
2323
dependencies {
2424
compileOnly("io.opentelemetry:opentelemetry-api")
2525
compileOnly("io.opentelemetry.instrumentation:opentelemetry-logback-1.0")
26-
compileOnly("io.opentelemetry.javaagent:opentelemetry-javaagent-api")
2726
compileOnly("io.opentelemetry.javaagent:opentelemetry-javaagent-extension-api")
27+
compileOnly("io.opentelemetry.javaagent:opentelemetry-javaagent-instrumentation-api")
2828
compileOnly("net.bytebuddy:byte-buddy")
2929

3030
compileOnly("ch.qos.logback:logback-classic:1.0.0")

instrumentation/logback-1.0/src/main/java/software/amazon/opentelemetry/javaagent/instrumentation/logback_1_0/AwsXrayLoggingEventInstrumentation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
package software.amazon.opentelemetry.javaagent.instrumentation.logback_1_0;
1717

18+
import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.hasClassesNamed;
1819
import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.implementsInterface;
19-
import static io.opentelemetry.javaagent.extension.matcher.ClassLoaderMatcher.hasClassesNamed;
2020
import static net.bytebuddy.matcher.ElementMatchers.isMethod;
2121
import static net.bytebuddy.matcher.ElementMatchers.isPublic;
2222
import static net.bytebuddy.matcher.ElementMatchers.named;

0 commit comments

Comments
 (0)