Skip to content

Commit

Permalink
Don't use string format for hex conversion due to high overhead
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Carter-Brown authored and gsmet committed Aug 4, 2020
1 parent e0a3c08 commit dd93dbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Span span() {

protected void putContext(JaegerSpanContext spanContext) {
MDC.put(TRACE_ID, spanContext.getTraceId());
MDC.put(SPAN_ID, String.format("%16x", spanContext.getSpanId()));
MDC.put(SPAN_ID, Long.toHexString(spanContext.getSpanId()));
MDC.put(SAMPLED, Boolean.toString(spanContext.isSampled()));
}
}

0 comments on commit dd93dbe

Please sign in to comment.