File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
internal-logging/src/main/java/co/elastic/otel/logging Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -92,10 +92,8 @@ public static void addSpanLoggingIfRequired(
9292
9393 logPlainText = config .getBoolean (OTEL_JAVAAGENT_DEBUG , false );
9494
95- List <String > configuredExporters = config .getList ("otel.traces.exporter" , emptyList ());
96- boolean loggingConfigured =
97- configuredExporters .stream ().anyMatch (e -> e .equals ("logging" ) || e .equals ("otlp-logging" ));
98- if (!loggingConfigured ) {
95+ List <String > exporters = config .getList ("otel.traces.exporter" , emptyList ());
96+ if (!exporters .contains ("logging" ) && !exporters .contains ("otlp-logging" )) {
9997 debugLogSpanExporter =
10098 new DebugLogSpanExporter (
10199 logPlainText ? LoggingSpanExporter .create () : OtlpJsonLoggingSpanExporter .create ());
You can’t perform that action at this time.
0 commit comments