public interface ServerSpanThreadBinder
| Modifier and Type | Method and Description |
|---|---|
ServerSpan |
getCurrentServerSpan()
This should be called in the thread in which the request was received before executing code in new threads.
|
void |
setCurrentSpan(ServerSpan span)
Binds given span to current thread.
|
ServerSpan getCurrentServerSpan()
It returns the current server span which you can keep and bind to a new thread using
ServerSpanThreadBinder#setCurrentSpan(Span).
ServerSpanThreadBinder#setCurrentSpan(Span)void setCurrentSpan(ServerSpan span)
span - Span to bind to current execution thread. Should not be null.Copyright © 2014. All Rights Reserved.