Skip to content

Commit 2093378

Browse files
committed
Add configuration for disabling dependencies
1 parent 8a22af1 commit 2093378

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,19 @@ private static void start(Instrumentation instrumentation) throws Exception {
132132
properties.put("ota.integration.java-util-logging.enabled", "false");
133133
properties.put("ota.integration.logback.enabled", "false");
134134
}
135+
if (!isInstrumentationEnabled(config, "redis")) {
136+
properties.put("ota.integration.jedis.enabled", "false");
137+
properties.put("ota.integration.lettuce.enabled", "false");
138+
}
139+
if (!isInstrumentationEnabled(config, "kafka")) {
140+
properties.put("ota.integration.kafka.enabled", "false");
141+
}
142+
if (!isInstrumentationEnabled(config, "mongo")) {
143+
properties.put("ota.integration.mongo.enabled", "false");
144+
}
145+
if (!isInstrumentationEnabled(config, "cassandra")) {
146+
properties.put("ota.integration.cassandra.enabled", "false");
147+
}
135148
if (!config.preview.openTelemetryApiSupport) {
136149
properties.put("ota.integration.opentelemetry-api.enabled", "false");
137150
}

0 commit comments

Comments
 (0)