|
13 | 13 | import io.opentelemetry.instrumentation.spring.autoconfigure.exporters.otlp.OtlpMetricExporterAutoConfiguration;
|
14 | 14 | import io.opentelemetry.instrumentation.spring.autoconfigure.exporters.otlp.OtlpSpanExporterAutoConfiguration;
|
15 | 15 | import io.opentelemetry.instrumentation.spring.autoconfigure.internal.MapConverter;
|
| 16 | +import io.opentelemetry.instrumentation.spring.autoconfigure.propagators.PropagationProperties; |
16 | 17 | import io.opentelemetry.instrumentation.spring.autoconfigure.resources.OtelResourceAutoConfiguration;
|
17 | 18 | import io.opentelemetry.instrumentation.spring.autoconfigure.resources.SpringConfigProperties;
|
18 | 19 | import io.opentelemetry.sdk.OpenTelemetrySdk;
|
|
57 | 58 | * <p>Updates the sampler probability for the configured {@link TracerProvider}.
|
58 | 59 | */
|
59 | 60 | @Configuration
|
60 |
| -@EnableConfigurationProperties({SamplerProperties.class, OtlpExporterProperties.class}) |
| 61 | +@EnableConfigurationProperties({ |
| 62 | + SamplerProperties.class, |
| 63 | + OtlpExporterProperties.class, |
| 64 | + PropagationProperties.class |
| 65 | +}) |
61 | 66 | public class OpenTelemetryAutoConfiguration {
|
62 | 67 |
|
63 | 68 | public OpenTelemetryAutoConfiguration() {}
|
@@ -96,8 +101,11 @@ static class Metric {}
|
96 | 101 | @Bean
|
97 | 102 | @ConditionalOnMissingBean
|
98 | 103 | ConfigProperties configProperties(
|
99 |
| - Environment env, OtlpExporterProperties otlpExporterProperties) { |
100 |
| - return new SpringConfigProperties(env, new SpelExpressionParser(), otlpExporterProperties); |
| 104 | + Environment env, |
| 105 | + OtlpExporterProperties otlpExporterProperties, |
| 106 | + PropagationProperties propagationProperties) { |
| 107 | + return new SpringConfigProperties( |
| 108 | + env, new SpelExpressionParser(), otlpExporterProperties, propagationProperties); |
101 | 109 | }
|
102 | 110 |
|
103 | 111 | @Bean(destroyMethod = "") // SDK components are shutdown from the OpenTelemetry instance
|
|
0 commit comments