Change default logging exporter prefix to ""
MODIFY
javaagent-exporters/logging/src/main/java/io/opentelemetry/javaagent/exporters/logging/LoggingExporter.java
javaagent-exporters/logging/src/main/java/io/opentelemetry/javaagent/exporters/logging/LoggingExporter.java
@@ -28,9 +28,10 @@ public class LoggingExporter implements SpanExporter {
StringBuilder stringBuilder = new StringBuilder();
for (SpanData span : list) {
+ if (!prefix.isEmpty()) {
+ stringBuilder.append(prefix).append(" ");
+ }
stringBuilder
- .append(prefix)
- .append(" ")
.append(span.getName())
.append(" ")
.append(span.getTraceId())

MODIFY
javaagent-exporters/logging/src/main/java/io/opentelemetry/javaagent/exporters/logging/LoggingExporterFactory.java
javaagent-exporters/logging/src/main/java/io/opentelemetry/javaagent/exporters/logging/LoggingExporterFactory.java
@@ -16,7 +16,7 @@ import java.util.Set;
public class LoggingExporterFactory implements SpanExporterFactory {
@Override
public SpanExporter fromConfig(Properties config) {
- return new LoggingExporter(config.getProperty("otel.logging.prefix", "Logging Exporter:"));
+ return new LoggingExporter(config.getProperty("otel.exporter.logging.prefix", ""));
}
@Override

Change default logging exporter prefix to "" (#1758)