Package io.lettuce.core.tracing
Class Tracer
- java.lang.Object
-
- io.lettuce.core.tracing.Tracer
-
public abstract class Tracer extends Object
Tracing abstraction to createTracer.Span
s to capture latency and behavior of Redis commands.- Since:
- 5.1
- Author:
- Mark Paluch
- See Also:
Tracer.Span
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Tracer.Span
Used to model the latency of an operation along with tags such as name or theTracing.Endpoint
.
-
Constructor Summary
Constructors Constructor Description Tracer()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Tracer.Span
nextSpan()
Returns a new traceTracer.Span
.abstract Tracer.Span
nextSpan(TraceContext traceContext)
-
-
-
Method Detail
-
nextSpan
public abstract Tracer.Span nextSpan()
Returns a new traceTracer.Span
.- Returns:
- a new
Tracer.Span
.
-
nextSpan
public abstract Tracer.Span nextSpan(TraceContext traceContext)
- Parameters:
traceContext
- the trace context.- Returns:
- a new
Tracer.Span
.
-
-