Class ThreadLocalSpan
java.lang.Object
io.micrometer.tracing.ThreadLocalSpan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the currently stored span and scope.@Nullable SpanAndScoperemove()Removes the current span from thread local and brings back the previous span to the current thread local.voidSets given span and scope.
-
Constructor Details
-
ThreadLocalSpan
Creates a new instance ofThreadLocalSpan.- Parameters:
tracer- tracer
-
-
Method Details
-
set
-
get
-
remove
Removes the current span from thread local and brings back the previous span to the current thread local.- Returns:
- removed span or
nullif there was none
-