brave.Span@Deprecated public abstract class LocalTracer extends AnnotationSubmitter
lc=spring-boot.
Here's an example of allocating precise duration for a local span:
tracer.startNewSpan("codec", "encode");
try {
return codec.encode(input);
} finally {
tracer.finishSpan();
}
Constants.LOCAL_COMPONENTAnnotationSubmitter.Clock| Modifier and Type | Method | Description |
|---|---|---|
void |
finishSpan() |
Deprecated.
Completes the span, assigning the most precise duration possible.
|
void |
finishSpan(long duration) |
Deprecated.
Completes the span, which took
duration microseconds. |
SpanId |
startNewSpan(java.lang.String component,
java.lang.String operation) |
Deprecated.
Request a new local span, which starts now.
|
SpanId |
startNewSpan(java.lang.String component,
java.lang.String operation,
long timestamp) |
Deprecated.
Request a new local span, which started at the given timestamp.
|
create, submitAnnotation, submitAnnotation, submitBinaryAnnotation, submitBinaryAnnotationpublic SpanId startNewSpan(java.lang.String component, java.lang.String operation)
component - component responsible for the operationoperation - name of the operation that's begunConstants.LOCAL_COMPONENTpublic SpanId startNewSpan(java.lang.String component, java.lang.String operation, long timestamp)
component - component responsible for the operationoperation - name of the operation that's beguntimestamp - time the operation started, in epoch microseconds.Constants.LOCAL_COMPONENTpublic void finishSpan()
public void finishSpan(long duration)
duration microseconds.Copyright © 2018 OpenZipkin. All rights reserved.