|
|
@ -64,14 +64,13 @@ class OpenTelemetryConfigurationsTracerConfigurationTests {
|
|
|
|
assertThat(context).hasBean("customTracer");
|
|
|
|
assertThat(context).hasBean("customTracer");
|
|
|
|
assertThat(context).hasSingleBean(Tracer.class);
|
|
|
|
assertThat(context).hasSingleBean(Tracer.class);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
private static class OpenTelemetryConfiguration {
|
|
|
|
private static class OpenTelemetryConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
OpenTelemetry tracer() {
|
|
|
|
OpenTelemetry openTelemetry() {
|
|
|
|
return Mockito.mock(OpenTelemetry.class);
|
|
|
|
return Mockito.mock(OpenTelemetry.class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|