diff --git a/agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/BeforeAgentInstaller.java b/agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/BeforeAgentInstaller.java index a946f28c16b..2b6930a9d2c 100644 --- a/agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/BeforeAgentInstaller.java +++ b/agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/BeforeAgentInstaller.java @@ -132,6 +132,19 @@ private static void start(Instrumentation instrumentation) throws Exception { properties.put("ota.integration.java-util-logging.enabled", "false"); properties.put("ota.integration.logback.enabled", "false"); } + if (!isInstrumentationEnabled(config, "redis")) { + properties.put("ota.integration.jedis.enabled", "false"); + properties.put("ota.integration.lettuce.enabled", "false"); + } + if (!isInstrumentationEnabled(config, "kafka")) { + properties.put("ota.integration.kafka.enabled", "false"); + } + if (!isInstrumentationEnabled(config, "mongo")) { + properties.put("ota.integration.mongo.enabled", "false"); + } + if (!isInstrumentationEnabled(config, "cassandra")) { + properties.put("ota.integration.cassandra.enabled", "false"); + } if (!config.preview.openTelemetryApiSupport) { properties.put("ota.integration.opentelemetry-api.enabled", "false"); }