public abstract static class Tracer.Span extends Object
Tracing.Endpoint.| Constructor and Description |
|---|
Span() |
| Modifier and Type | Method and Description |
|---|---|
abstract Tracer.Span |
annotate(String value)
Associates an event that explains latency with the current system time.
|
abstract Tracer.Span |
error(Throwable throwable)
Associate an
error with this Tracer.Span. |
abstract void |
finish()
Reports the span complete.
|
abstract Tracer.Span |
name(String name)
Sets the name for this
Tracer.Span. |
abstract Tracer.Span |
remoteEndpoint(Tracing.Endpoint endpoint)
Associates an
Tracing.Endpoint with this Tracer.Span. |
abstract Tracer.Span |
start()
Starts the span with.
|
abstract Tracer.Span |
tag(String key,
String value)
Associates a tag with this
Tracer.Span. |
public abstract Tracer.Span start()
Tracer.Span.public abstract Tracer.Span name(String name)
Tracer.Span.name - must not be null.Tracer.Span.public abstract Tracer.Span annotate(String value)
value - A short tag indicating the event, like "finagle.retry"public abstract Tracer.Span tag(String key, String value)
Tracer.Span.key - must not be null.value - must not be null.Tracer.Span.public abstract Tracer.Span error(Throwable throwable)
error with this Tracer.Span.throwable - must not be null.public abstract Tracer.Span remoteEndpoint(Tracing.Endpoint endpoint)
Tracing.Endpoint with this Tracer.Span.endpoint - must not be null.public abstract void finish()
Copyright © 2020 lettuce.io. All rights reserved.