Pages

Spring Boot - get Trace and Span ID programmatically

 Autowire Tracer tracer

and get traceId and spanId from current Span


Span
span = tracer.currentSpan();
span.context().traceId() //trace ID span.context().spanId() //span ID

No comments:

Post a Comment

Your Comment and Question will help to make this blog better...