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:
Anuraag Agrawal 2020-11-03 00:47:11 +09:00 committed by GitHub
parent 6e05d059ba
commit 0e937d4c55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}
}

View File

@ -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();
}
}