|
|
|
|
@ -24,7 +24,6 @@ import java.util.Map;
@@ -24,7 +24,6 @@ import java.util.Map;
|
|
|
|
|
import java.util.concurrent.CountDownLatch; |
|
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
import java.util.concurrent.TimeoutException; |
|
|
|
|
import java.util.stream.Stream; |
|
|
|
|
|
|
|
|
|
import io.micrometer.tracing.SpanCustomizer; |
|
|
|
|
import io.micrometer.tracing.otel.bridge.OtelCurrentTraceContext; |
|
|
|
|
@ -235,8 +234,8 @@ class OpenTelemetryAutoConfigurationTests {
@@ -235,8 +234,8 @@ class OpenTelemetryAutoConfigurationTests {
|
|
|
|
|
void shouldSupplyB3PropagationIfPropagationPropertySet() { |
|
|
|
|
this.contextRunner.withPropertyValues("management.tracing.propagation.type=B3").run((context) -> { |
|
|
|
|
TextMapPropagator propagator = context.getBean(TextMapPropagator.class); |
|
|
|
|
Stream<Class<?>> injectors = getInjectors(propagator).stream().map(Object::getClass); |
|
|
|
|
assertThat(injectors).containsExactly(B3Propagator.class, BaggageTextMapPropagator.class); |
|
|
|
|
List<TextMapPropagator> injectors = getInjectors(propagator); |
|
|
|
|
assertThat(injectors).hasExactlyElementsOfTypes(B3Propagator.class, BaggageTextMapPropagator.class); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -246,8 +245,8 @@ class OpenTelemetryAutoConfigurationTests {
@@ -246,8 +245,8 @@ class OpenTelemetryAutoConfigurationTests {
|
|
|
|
|
.withPropertyValues("management.tracing.propagation.type=B3", "management.tracing.baggage.enabled=false") |
|
|
|
|
.run((context) -> { |
|
|
|
|
TextMapPropagator propagator = context.getBean(TextMapPropagator.class); |
|
|
|
|
Stream<Class<?>> injectors = getInjectors(propagator).stream().map(Object::getClass); |
|
|
|
|
assertThat(injectors).containsExactly(B3Propagator.class); |
|
|
|
|
List<TextMapPropagator> injectors = getInjectors(propagator); |
|
|
|
|
assertThat(injectors).hasExactlyElementsOfTypes(B3Propagator.class); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -268,8 +267,8 @@ class OpenTelemetryAutoConfigurationTests {
@@ -268,8 +267,8 @@ class OpenTelemetryAutoConfigurationTests {
|
|
|
|
|
void shouldSupplyW3CPropagationWithoutBaggageWhenDisabled() { |
|
|
|
|
this.contextRunner.withPropertyValues("management.tracing.baggage.enabled=false").run((context) -> { |
|
|
|
|
TextMapPropagator propagator = context.getBean(TextMapPropagator.class); |
|
|
|
|
Stream<Class<?>> injectors = getInjectors(propagator).stream().map(Object::getClass); |
|
|
|
|
assertThat(injectors).containsExactly(W3CTraceContextPropagator.class); |
|
|
|
|
List<TextMapPropagator> injectors = getInjectors(propagator); |
|
|
|
|
assertThat(injectors).hasExactlyElementsOfTypes(W3CTraceContextPropagator.class); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|