Skip to content

Commit 700022c

Browse files
committed
fix
1 parent 956b411 commit 700022c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/init/AiConfigCustomizer.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,11 @@ private static void enableInstrumentations(
240240
properties.put("otel.instrumentation.spring-jms.enabled", "true");
241241
}
242242
if (config.instrumentation.kafka.enabled) {
243-
properties.put("otel.instrumentation.kafka.enabled", "true");
243+
properties.put("otel.instrumentation.kafka-clients.enabled", "true");
244+
properties.put("otel.instrumentation.kafka-clients-metrics.enabled", "false");
244245
properties.put("otel.instrumentation.spring-kafka.enabled", "true");
245246
// this is needed to capture kafka.record.queue_time_ms
246247
properties.put("otel.instrumentation.kafka.experimental-span-attributes", "true");
247-
// kafka metrics are enabled by default
248-
properties.put("otel.instrumentation.kafka.metric-reporter.enabled", "false");
249248
}
250249
if (config.instrumentation.mongo.enabled) {
251250
properties.put("otel.instrumentation.mongo.enabled", "true");

0 commit comments

Comments
 (0)