Skip to content

Commit

Permalink
Update instrumentation/spring/spring-boot-autoconfigure/src/main/java…
Browse files Browse the repository at this point in the history
…/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/internal/ExporterConfigEvaluator.java
  • Loading branch information
zeitlinger committed Feb 21, 2024
1 parent 3603a23 commit f9742af
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ private ExporterConfigEvaluator() {}
public static boolean isExporterEnabled(
Environment environment, String exportersKey, String wantExporter, boolean defaultValue) {

// all Spring auto-configurations are disabled with otel.sdk.disabled
if (environment.getProperty("otel.sdk.disabled", Boolean.class, false)) {
return false;
}
Expand Down

0 comments on commit f9742af

Please sign in to comment.