Skip to content

Commit

Permalink
move javaagent detector to javaagent project
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Feb 23, 2024
1 parent 03a0fa5 commit 927bc66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import io.opentelemetry.instrumentation.resources.ProcessRuntimeResourceProvider;
import io.opentelemetry.instrumentation.spring.autoconfigure.OpenTelemetryAutoConfiguration;
import io.opentelemetry.instrumentation.spring.autoconfigure.internal.SdkEnabled;
import io.opentelemetry.instrumentation.spring.resources.SpringBootServiceNameDetector;
import io.opentelemetry.instrumentation.spring.resources.SpringBootServiceVersionDetector;
import io.opentelemetry.sdk.autoconfigure.internal.EnvironmentResourceProvider;
import io.opentelemetry.sdk.autoconfigure.spi.ResourceProvider;
Expand Down Expand Up @@ -51,12 +50,6 @@ public ResourceProvider otelDistroVersionResourceProvider() {
return new DistroVersionResourceProvider();
}

@Bean
@ConditionalOnClass(SpringBootServiceNameDetector.class)
public ResourceProvider otelSpringBootServiceNameResourceProvider() {
return new SpringBootServiceNameDetector();
}

@Bean
@ConditionalOnClass(SpringBootServiceVersionDetector.class)
public ResourceProvider otelSpringBootServiceVersionResourceProvider() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
plugins {
id("otel.javaagent-instrumentation")
id("otel.sdk-extension")
}

extra["mavenGroupId"] = "io.opentelemetry.javaagent.instrumentation"
base.archivesName.set(projectDir.parentFile.name)

dependencies {
compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi")

Expand All @@ -10,7 +13,7 @@ dependencies {
testCompileOnly("com.google.auto.service:auto-service-annotations")

implementation("org.snakeyaml:snakeyaml-engine")
implementation(project(":instrumentation:resources:library"))
implementation(project(":instrumentation:spring:spring-boot-resources:library"))

testImplementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi")
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ dependencies {
compileOnly("com.google.auto.service:auto-service-annotations")
testCompileOnly("com.google.auto.service:auto-service-annotations")

implementation(project(":instrumentation:resources:library"))

testImplementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi")
}

0 comments on commit 927bc66

Please sign in to comment.