| Package | Description |
|---|---|
| brave | |
| brave.propagation |
| Modifier and Type | Method | Description |
|---|---|---|
abstract Span |
Span.annotate(long timestamp,
String value) |
Like
SpanCustomizer.annotate(String), except with a given timestamp in microseconds. |
abstract Span |
Span.annotate(String value) |
Associates an event that explains latency with the current system time.
|
Span |
Tracer.currentSpan() |
Returns the current span in scope or null if there isn't one.
|
Span |
Tracer.joinSpan(TraceContext context) |
Joining is re-using the same trace and span ids extracted from an incoming RPC request.
|
abstract Span |
Span.kind(Span.Kind kind) |
The kind of span is optional.
|
abstract Span |
Span.name(String name) |
Sets the string name for the logical operation this span represents.
|
Span |
Tracer.newChild(TraceContext parent) |
Explicitly creates a child within an existing.
|
Span |
Tracer.newTrace() |
Explicitly creates a new trace.
|
Span |
Tracer.newTrace(SamplingFlags samplingFlags) |
Like
Tracer.newTrace(), but supports parameterized sampling, for example limiting on
operation or url pattern. |
Span |
Tracer.nextSpan() |
Returns a new child span if there's a
Tracer.currentSpan() or a new trace if there isn't. |
Span |
Tracer.nextSpan(TraceContextOrSamplingFlags extracted) |
This creates a new span based on parameters extracted from an incoming request.
|
Span |
Span.remoteEndpoint(zipkin.Endpoint endpoint) |
Deprecated.
use
remoteEndpoint(Endpoint), possibly with Endpoint.toV2() |
abstract Span |
Span.remoteEndpoint(zipkin2.Endpoint endpoint) |
For a client span, this would be the server's address.
|
abstract Span |
Span.start() |
Starts the span with an implicit timestamp.
|
abstract Span |
Span.start(long timestamp) |
Like
start(), except with a given timestamp in microseconds. |
abstract Span |
Span.tag(String key,
String value) |
Tags give your span context for search, viewing and analysis.
|
Span |
Tracer.toSpan(TraceContext context) |
Converts the context as-is to a Span object
|
| Modifier and Type | Method | Description |
|---|---|---|
Tracer.SpanInScope |
Tracer.withSpanInScope(Span span) |
Makes the given span the "current span" and returns an object that exits that scope on close.
|
| Modifier and Type | Method | Description |
|---|---|---|
Span |
ThreadLocalSpan.next() |
Returns the
Tracer.nextSpan() or null if ThreadLocalSpan.CURRENT_TRACER and tracing isn't
available. |
Span |
ThreadLocalSpan.remove() |
Returns the span set in scope via
ThreadLocalSpan.next() or null if there was none. |
Copyright © 2017 OpenZipkin. All rights reserved.