Use fine logging in w3c/b3 propagator instead of info. (#1966)
* Use fine logging in w3c propagator instead of info. * Fine for b3 too
This commit is contained in:
parent
6e05d059ba
commit
0e937d4c55
|
@ -175,7 +175,7 @@ public final class HttpTraceContext implements TextMapPropagator {
|
|||
contextFromParentHeader.getTraceFlags(),
|
||||
traceState);
|
||||
} catch (IllegalArgumentException e) {
|
||||
logger.info("Unparseable tracestate header. Returning span context without state.");
|
||||
logger.fine("Unparseable tracestate header. Returning span context without state.");
|
||||
return contextFromParentHeader;
|
||||
}
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ public final class HttpTraceContext implements TextMapPropagator {
|
|||
&& traceparent.charAt(SPAN_ID_OFFSET - 1) == TRACEPARENT_DELIMITER
|
||||
&& traceparent.charAt(TRACE_OPTION_OFFSET - 1) == TRACEPARENT_DELIMITER;
|
||||
if (!isValid) {
|
||||
logger.info("Unparseable traceparent header. Returning INVALID span context.");
|
||||
logger.fine("Unparseable traceparent header. Returning INVALID span context.");
|
||||
return SpanContext.getInvalid();
|
||||
}
|
||||
|
||||
|
@ -213,7 +213,7 @@ public final class HttpTraceContext implements TextMapPropagator {
|
|||
}
|
||||
return SpanContext.getInvalid();
|
||||
} catch (IllegalArgumentException e) {
|
||||
logger.info("Unparseable traceparent header. Returning INVALID span context.");
|
||||
logger.fine("Unparseable traceparent header. Returning INVALID span context.");
|
||||
return SpanContext.getInvalid();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ final class Common {
|
|||
traceFlags,
|
||||
TraceState.getDefault());
|
||||
} catch (Exception e) {
|
||||
logger.log(Level.INFO, "Error parsing header. Returning INVALID span context.", e);
|
||||
logger.log(Level.FINE, "Error parsing header. Returning INVALID span context.", e);
|
||||
return SpanContext.getInvalid();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue