Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ public SpanBuilder buildSpan(String operationName) {
@Override
public <C> void inject(SpanContext context, Format<C> format, C carrier) {
if (context == null) {
logger.log(Level.INFO, "Cannot inject a null span context.");
logger.log(Level.WARNING, "Cannot inject a null span context.");
return;
}

SpanContextShim contextShim = ShimUtil.getContextShim(context);
if (contextShim == null) {
logger.log(Level.WARNING, "Cannot inject a null span context shim.");
return;
}

Expand All @@ -107,7 +108,7 @@ public <C> SpanContext extract(Format<C> format, C carrier) {
}
} catch (RuntimeException e) {
logger.log(
Level.INFO,
Level.WARNING,
"Exception caught while extracting span context; returning null. "
+ "Exception: [{0}] Message: [{1}]",
new String[] {e.getClass().getName(), e.getMessage()});
Expand All @@ -127,7 +128,7 @@ public void close() {
try {
((Closeable) provider).close();
} catch (RuntimeException | IOException e) {
logger.log(Level.INFO, "Exception caught while closing TracerProvider.", e);
logger.log(Level.WARNING, "Exception caught while closing TracerProvider.", e);
}
}
}
Expand Down
Loading