Skip to content

Commit b9ae5d1

Browse files
committed
use testLibrary
1 parent 01acb0d commit b9ae5d1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ muzzle {
1515
dependencies {
1616
library("org.springframework.boot:spring-boot-actuator-autoconfigure:2.0.0.RELEASE")
1717
library("io.micrometer:micrometer-core:1.5.0")
18-
runtimeOnly("io.micrometer:micrometer-registry-prometheus:1.0.1")
18+
testLibrary("io.micrometer:micrometer-registry-prometheus:1.0.1")
1919

2020
implementation(project(":instrumentation:micrometer:micrometer-1.5:javaagent"))
2121

instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/actuator/v2_0/OpenTelemetryMeterRegistryAutoConfiguration.java

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public MeterRegistry otelMeterRegistry() {
4242
}
4343

4444
@Bean
45+
// static to avoid "is not eligible for getting processed by all BeanPostProcessors" warning
4546
static BeanPostProcessor postProcessCompositeMeterRegistry() {
4647
return new BeanPostProcessor() {
4748
@Override

0 commit comments

Comments
 (0)