Remove warning from mongo listener. Add injection debug logging.
MODIFY
dd-java-agent/instrumentation/mongo-3.1/src/main/java/datadog/trace/instrumentation/mongo/DDTracingCommandListener.java
dd-java-agent/instrumentation/mongo-3.1/src/main/java/datadog/trace/instrumentation/mongo/DDTracingCommandListener.java
@@ -77,7 +77,7 @@ public class DDTracingCommandListener implements CommandListener {
try {
decorate(span, event);
} catch (final Throwable e) {
- log.warn("Couldn't decorate the mongo query: " + e.getMessage(), e);
+ log.debug("Couldn't decorate the mongo query: " + e.getMessage(), e);
}
return span;

MODIFY
dd-trace-ot/src/main/java/datadog/opentracing/propagation/HTTPCodec.java
dd-trace-ot/src/main/java/datadog/opentracing/propagation/HTTPCodec.java
@@ -31,6 +31,7 @@ public class HTTPCodec implements Codec<TextMap> {
for (final Map.Entry<String, String> entry : context.baggageItems()) {
carrier.put(OT_BAGGAGE_PREFIX + entry.getKey(), encode(entry.getValue()));
}
+ log.debug("{} - Parent context injected", context.getTraceId());
}
@Override
@@ -61,7 +62,7 @@ public class HTTPCodec implements Codec<TextMap> {
context = new ExtractedContext(traceId, spanId, samplingPriority, baggage);
context.lockSamplingPriority();
- log.debug("{} - Parent context extracted", context);
+ log.debug("{} - Parent context extracted", context.getTraceId());
}
return context;

Remove warning from mongo listener. Add injection debug logging.