|
6 | 6 | import static java.util.concurrent.TimeUnit.SECONDS; |
7 | 7 |
|
8 | 8 | import com.microsoft.applicationinsights.agent.internal.configuration.Configuration; |
9 | | -import com.microsoft.applicationinsights.agent.internal.legacyheaders.DelegatingPropagatorProvider; |
10 | 9 | import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties; |
11 | 10 | import java.util.HashMap; |
12 | 11 | import java.util.List; |
@@ -104,28 +103,6 @@ public Map<String, String> apply(ConfigProperties otelConfig) { |
104 | 103 | properties.put("applicationinsights.internal.methods.include", sb.toString()); |
105 | 104 | } |
106 | 105 |
|
107 | | - properties.put("otel.propagators", DelegatingPropagatorProvider.NAME); |
108 | | - |
109 | | - properties.put("otel.traces.sampler", DelegatingSamplerProvider.NAME); |
110 | | - |
111 | | - String tracesExporter = otelConfig.getString("otel.traces.exporter"); |
112 | | - if (tracesExporter == null) { |
113 | | - // this overrides the default "otlp" so the exporter can be configured later |
114 | | - properties.put("otel.traces.exporter", "none"); |
115 | | - } |
116 | | - |
117 | | - String metricsExporter = otelConfig.getString("otel.metrics.exporter"); |
118 | | - if (metricsExporter == null) { |
119 | | - // this overrides the default "otlp" so the exporter can be configured later |
120 | | - properties.put("otel.metrics.exporter", "none"); |
121 | | - } |
122 | | - |
123 | | - String logsExporter = otelConfig.getString("otel.logs.exporter"); |
124 | | - if (logsExporter == null) { |
125 | | - // this overrides the default "otlp" so the exporter can be configured later |
126 | | - properties.put("otel.logs.exporter", "none"); |
127 | | - } |
128 | | - |
129 | 106 | if (configuration.role.name != null) { |
130 | 107 | // in case using another exporter |
131 | 108 | properties.put("otel.service.name", configuration.role.name); |
|
0 commit comments