Skip to content

Commit

Permalink
Add configuration for disabling dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Dec 18, 2020
1 parent 8a22af1 commit 2093378
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 2093378

Please sign in to comment.