java.lang.Object
io.lettuce.core.tracing.Tracer.Span
- Enclosing class:
- Tracer
public abstract static class Tracer.Span extends Object
Used to model the latency of an operation along with tags such as name or the
Tracing.Endpoint.-
Constructor Summary
Constructors Constructor Description Span() -
Method Summary
Modifier and Type Method Description abstract Tracer.Spanannotate(String value)Associates an event that explains latency with the current system time.abstract Tracer.Spanerror(Throwable throwable)Associate anerrorwith thisTracer.Span.abstract voidfinish()Reports the span complete.abstract Tracer.Spanname(String name)Sets the name for thisTracer.Span.abstract Tracer.SpanremoteEndpoint(Tracing.Endpoint endpoint)Associates anTracing.Endpointwith thisTracer.Span.abstract Tracer.Spanstart(RedisCommand<?,?,?> command)Starts the span with.abstract Tracer.Spantag(String key, String value)Associates a tag with thisTracer.Span.
-
Constructor Details
-
Span
public Span()
-
-
Method Details
-
start
Starts the span with.- Parameters:
command- the underlying command.- Returns:
- this
Tracer.Span.
-
name
Sets the name for thisTracer.Span.- Parameters:
name- must not benull.- Returns:
- this
Tracer.Span.
-
annotate
Associates an event that explains latency with the current system time.- Parameters:
value- A short tag indicating the event, like "finagle.retry"
-
tag
Associates a tag with thisTracer.Span.- Parameters:
key- must not benull.value- must not benull.- Returns:
- this
Tracer.Span.
-
error
Associate anerrorwith thisTracer.Span.- Parameters:
throwable- must not benull.- Returns:
- this
Tracer.Span.
-
remoteEndpoint
Associates anTracing.Endpointwith thisTracer.Span.- Parameters:
endpoint- must not benull.- Returns:
- this
Tracer.Span.
-
finish
public abstract void finish()Reports the span complete.
-