File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/resources Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 17
17
import io .opentelemetry .instrumentation .resources .ProcessRuntimeResourceProvider ;
18
18
import io .opentelemetry .instrumentation .spring .autoconfigure .OpenTelemetryAutoConfiguration ;
19
19
import io .opentelemetry .instrumentation .spring .autoconfigure .internal .SdkEnabled ;
20
- import io .opentelemetry .instrumentation .spring .resources .SpringBootServiceNameDetector ;
21
20
import io .opentelemetry .instrumentation .spring .resources .SpringBootServiceVersionDetector ;
22
21
import io .opentelemetry .sdk .autoconfigure .internal .EnvironmentResourceProvider ;
23
22
import io .opentelemetry .sdk .autoconfigure .spi .ResourceProvider ;
@@ -51,12 +50,6 @@ public ResourceProvider otelDistroVersionResourceProvider() {
51
50
return new DistroVersionResourceProvider ();
52
51
}
53
52
54
- @ Bean
55
- @ ConditionalOnClass (SpringBootServiceNameDetector .class )
56
- public ResourceProvider otelSpringBootServiceNameResourceProvider () {
57
- return new SpringBootServiceNameDetector ();
58
- }
59
-
60
53
@ Bean
61
54
@ ConditionalOnClass (SpringBootServiceVersionDetector .class )
62
55
public ResourceProvider otelSpringBootServiceVersionResourceProvider () {
Original file line number Diff line number Diff line change 1
1
plugins {
2
- id(" otel.javaagent-instrumentation " )
2
+ id(" otel.sdk-extension " )
3
3
}
4
4
5
+ extra[" mavenGroupId" ] = " io.opentelemetry.javaagent.instrumentation"
6
+ base.archivesName.set(projectDir.parentFile.name)
7
+
5
8
dependencies {
6
9
compileOnly(" io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi" )
7
10
@@ -10,7 +13,7 @@ dependencies {
10
13
testCompileOnly(" com.google.auto.service:auto-service-annotations" )
11
14
12
15
implementation(" org.snakeyaml:snakeyaml-engine" )
13
- implementation(project(" :instrumentation:resources:library" ))
16
+ implementation(project(" :instrumentation:spring:spring-boot- resources:library" ))
14
17
15
18
testImplementation(" io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi" )
16
19
}
Original file line number Diff line number Diff line change @@ -9,7 +9,5 @@ dependencies {
9
9
compileOnly(" com.google.auto.service:auto-service-annotations" )
10
10
testCompileOnly(" com.google.auto.service:auto-service-annotations" )
11
11
12
- implementation(project(" :instrumentation:resources:library" ))
13
-
14
12
testImplementation(" io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi" )
15
13
}
You can’t perform that action at this time.
0 commit comments