Package org.springframework.cloud.sleuth
Class ThreadLocalSpan
java.lang.Object
org.springframework.cloud.sleuth.ThreadLocalSpan
Represents a
Span stored in thread local.- Since:
- 3.1.0
- Author:
- Marcin Grzejszczak
-
Constructor Details
-
ThreadLocalSpan
-
-
Method Details
-
set
Sets given span and scope.- Parameters:
span- - span to be put in scope
-
get
- Returns:
- currently stored span and scope
-
remove
public void remove()Removes the current span from thread local and brings back the previous span to the current thread local.
-