| Package | Description |
|---|---|
| brave |
| Modifier and Type | Method and Description |
|---|---|
abstract Span |
Span.annotate(long timestamp,
String value)
Like
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 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)
Creates a new span within an existing trace.
|
Span |
Tracer.newTrace()
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. |
abstract Span |
Span.remoteEndpoint(zipkin.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 and Description |
|---|---|
Tracer.SpanInScope |
Tracer.withSpanInScope(Span span)
Makes the given span the "current span" and returns an object that exits that scope on close.
|
Copyright © 2017 OpenZipkin. All rights reserved.