| Package | Description |
|---|---|
| brave | |
| brave.handler | |
| brave.internal | |
| brave.internal.propagation | |
| brave.propagation | |
| brave.sampler |
| Modifier and Type | Method | Description |
|---|---|---|
static Tracing |
Tracing.current() |
Returns the most recently created tracing component iff it hasn't been closed.
|
Span |
Tracer.currentSpan() |
Returns the current span in scope or null if there isn't one.
|
static Tracer |
Tracing.currentTracer() |
Returns the most recently created tracer if its component hasn't been closed.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract boolean |
Span.remoteIpAndPort(String remoteIp,
int remotePort) |
Sets the IP and port associated with the remote endpoint.
|
ScopedSpan |
Tracer.startScopedSpanWithParent(String name,
TraceContext parent) |
Same as
Tracer.startScopedSpan(String), except ignores the current trace context. |
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 |
|---|---|---|
String |
MutableSpan.localIp() |
When null
default will be used for zipkin. |
String |
MutableSpan.localServiceName() |
When null
default will be used for
zipkin. |
String |
MutableSpan.name() |
Returns the
span name or null |
String |
MutableSpan.remoteIp() |
The text representation of the primary IPv4 or IPv6 address associated with the remote side of
this connection.
|
String |
MutableSpan.remoteServiceName() |
|
String |
MutableSpan.tag(String key) |
Returns the last value associated with the key or null
|
String |
MutableSpan.AnnotationUpdater.update(long timestamp,
String value) |
Returns the same value, an updated one, or null to drop the annotation.
|
String |
MutableSpan.TagUpdater.update(String key,
String value) |
Returns the same value, an updated one, or null to drop the tag.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
MutableSpan.localIp(String localIp) |
|
boolean |
MutableSpan.remoteIpAndPort(String remoteIp,
int remotePort) |
| Modifier and Type | Method | Description |
|---|---|---|
abstract String |
Platform.getHostString(InetSocketAddress socket) |
Guards
InetSocketAddress.getHostString(), as it isn't available until Java 7 |
static String |
IpLiteral.ipOrNull(String ip) |
|
String |
Platform.linkLocalIp() |
| Modifier and Type | Method | Description |
|---|---|---|
static String |
IpLiteral.ipOrNull(String ip) |
|
void |
Platform.log(String msg,
Object param1,
Throwable thrown) |
Like
Logger.log(Level, String, Object), except with a throwable arg |
void |
Platform.log(String msg,
Throwable thrown) |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract String |
CorrelationFieldScopeDecorator.get(String key) |
Returns the correlation property of the specified name iff it is a string, or null otherwise.
|
| Modifier and Type | Method | Description |
|---|---|---|
CurrentTraceContext.Scope |
CorrelationFieldScopeDecorator.decorateScope(TraceContext currentSpan,
CurrentTraceContext.Scope scope) |
When the input is not null "traceId", "parentId" and "spanId" correlation properties are saved
off and replaced with those of the current span.
|
| Modifier and Type | Method | Description |
|---|---|---|
TraceContext |
TraceContextOrSamplingFlags.context() |
|
static String |
ExtraFieldPropagation.current(String name) |
Synonym for
ExtraFieldPropagation.get(String) |
<T> T |
TraceContext.findExtra(Class<T> type) |
Returns an extra of the given type if present or null if not.
|
abstract TraceContext |
CurrentTraceContext.get() |
Returns the current span in scope or null if there isn't one.
|
static String |
ExtraFieldPropagation.get(TraceContext context,
String name) |
Returns the value of the field with the specified key or null if not available
|
static String |
ExtraFieldPropagation.get(String name) |
Returns the value of the field with the specified key or null if not available.
|
String |
Propagation.Getter.get(C carrier,
K key) |
|
Span |
ThreadLocalSpan.next() |
Returns the
Tracer.nextSpan() or null if ThreadLocalSpan.CURRENT_TRACER and tracing isn't
available. |
Span |
ThreadLocalSpan.next(TraceContextOrSamplingFlags extracted) |
Returns the
Tracer.nextSpan(TraceContextOrSamplingFlags) or null if ThreadLocalSpan.CURRENT_TRACER and tracing isn't available. |
Long |
TraceContext.parentId() |
The parent's
TraceContext.spanId or null if this the root span in a trace. |
static TraceContextOrSamplingFlags |
B3SingleFormat.parseB3SingleFormat(CharSequence b3) |
|
static TraceContextOrSamplingFlags |
B3SingleFormat.parseB3SingleFormat(CharSequence b3,
int beginIndex,
int endIndex) |
|
Span |
ThreadLocalSpan.remove() |
Returns the span set in scope via
ThreadLocalSpan.next() or null if there was none. |
Boolean |
SamplingFlags.sampled() |
Sampled means send span data to Zipkin (or something else compatible with its data).
|
Boolean |
TraceContextOrSamplingFlags.sampled() |
Returns
SamplingFlags.sampled(), regardless of subtype. |
SamplingFlags |
TraceContextOrSamplingFlags.samplingFlags() |
|
TraceIdContext |
TraceContextOrSamplingFlags.traceIdContext() |
| Modifier and Type | Method | Description |
|---|---|---|
static SamplingFlags |
SamplingFlags.Builder.build(Boolean sampled) |
Deprecated.
Allows you to create flags from a boolean value without allocating a builder instance
|
static TraceContextOrSamplingFlags |
TraceContextOrSamplingFlags.create(Boolean sampled,
boolean debug) |
|
protected CurrentTraceContext.Scope |
CurrentTraceContext.decorateScope(TraceContext currentSpan,
CurrentTraceContext.Scope scope) |
When implementing CurrentTraceContext.newScope(TraceContext), decorate the result before returning
it.
|
CurrentTraceContext.Scope |
CurrentTraceContext.ScopeDecorator.decorateScope(TraceContext currentSpan,
CurrentTraceContext.Scope scope) |
|
CurrentTraceContext.Scope |
StrictScopeDecorator.decorateScope(TraceContext currentSpan,
CurrentTraceContext.Scope scope) |
Identifies problems by throwing assertion errors when a scope is closed on a different thread.
|
CurrentTraceContext.Scope |
CurrentTraceContext.maybeScope(TraceContext currentSpan) |
Like
CurrentTraceContext.newScope(TraceContext), except returns CurrentTraceContext.Scope.NOOP if the given context is
already in scope. |
abstract CurrentTraceContext.Scope |
CurrentTraceContext.newScope(TraceContext currentSpan) |
Sets the current span in scope until the returned object is closed.
|
CurrentTraceContext.Scope |
ThreadLocalCurrentTraceContext.newScope(TraceContext currentSpan) |
|
TraceContext.Builder |
TraceContext.Builder.parentId(Long parentId) |
|
SamplingFlags.Builder |
SamplingFlags.Builder.sampled(Boolean sampled) |
Deprecated.
|
TraceContext.Builder |
TraceContext.Builder.sampled(Boolean sampled) |
|
TraceContextOrSamplingFlags |
TraceContextOrSamplingFlags.sampled(Boolean sampled) |
Deprecated.
do not use object variant.. only set when you have a sampling decision
|
TraceIdContext.Builder |
TraceIdContext.Builder.sampled(Boolean sampled) |
| Modifier and Type | Method | Description |
|---|---|---|
Float |
DeclarativeSampler.RateForMethod.get(M method) |
Returns null if there's no configured rate for this method
|
| Modifier and Type | Method | Description |
|---|---|---|
SamplingFlags |
DeclarativeSampler.sample(M method) |
|
SamplingFlags |
ParameterizedSampler.sample(P parameters) |
Copyright © 2018 OpenZipkin. All rights reserved.