Merge pull request #287 from DataDog/ark/logging

Logging
This commit is contained in:
Andrew Kent 2018-04-17 09:26:32 -07:00 committed by GitHub
commit 9bcd5677ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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;