Skip navigation links
A B C D E F G H I J K L M N P R S T V W Z 

A

abandon(TraceContext) - Method in class brave.internal.recorder.Recorder
 
abandon() - Method in class brave.Span
Throws away the current span without reporting it.
addExtra(Object) - Method in class brave.propagation.TraceContextOrSamplingFlags.Builder
 
ALWAYS_SAMPLE - Static variable in class brave.sampler.Sampler
 
annotate(String) - Method in class brave.CurrentSpanCustomizer
Associates an event that explains latency with the current system time.
annotate(long, String) - Method in class brave.CurrentSpanCustomizer
Like SpanCustomizer.annotate(String), except with a given timestamp in microseconds.
annotate(TraceContext, long, String) - Method in class brave.internal.recorder.Recorder
 
annotate(String) - Method in class brave.Span
Associates an event that explains latency with the current system time.
annotate(long, String) - Method in class brave.Span
Like SpanCustomizer.annotate(String), except with a given timestamp in microseconds.
annotate(String) - Method in interface brave.SpanCustomizer
Associates an event that explains latency with the current system time.
annotate(long, String) - Method in interface brave.SpanCustomizer
Like SpanCustomizer.annotate(String), except with a given timestamp in microseconds.
autoBuild() - Method in class brave.propagation.TraceContext.Builder
 
awaitTermination(long, TimeUnit) - Method in class brave.internal.WrappingExecutorService
 

B

B3 - Static variable in class brave.propagation.Propagation.Factory
 
B3_STRING - Static variable in interface brave.propagation.Propagation
 
B3Propagation<K> - Class in brave.propagation
Implements B3 Propagation
BoundarySampler - Class in brave.sampler
This sampler is appropriate for high-traffic instrumentation (ex edge web servers that each receive >100K requests) who provision random trace ids, and make the sampling decision only once.
brave - package brave
 
brave.internal - package brave.internal
 
brave.internal.recorder - package brave.internal.recorder
 
brave.propagation - package brave.propagation
 
brave.sampler - package brave.sampler
 
build(Boolean) - Static method in class brave.propagation.SamplingFlags.Builder
Allows you to create flags from a boolean value without allocating a builder instance
build() - Method in class brave.propagation.SamplingFlags.Builder
 
build() - Method in class brave.propagation.TraceContext.Builder
 
build() - Method in class brave.propagation.TraceContextOrSamplingFlags.Builder
Returns an immutable result from the values currently in the builder
build() - Method in class brave.propagation.TraceIdContext.Builder
 
build() - Method in class brave.Tracer.Builder
Deprecated.
 
build() - Method in class brave.Tracing.Builder
 
Builder() - Constructor for class brave.propagation.SamplingFlags.Builder
 
Builder() - Constructor for class brave.Tracer.Builder
Deprecated.
 

C

Clock - Interface in brave
Epoch microseconds used for Span.timestamp and Annotation.timestamp.
clock(Clock) - Method in class brave.Tracer.Builder
Deprecated.
 
clock() - Method in class brave.Tracer
Deprecated.
clock(Clock) - Method in class brave.Tracing.Builder
clock() - Method in class brave.Tracing
This exposes the microsecond clock used by operations such as Span.finish().
close() - Method in interface brave.propagation.CurrentTraceContext.Scope
No exceptions are thrown when unbinding a span scope.
close() - Method in class brave.Tracer.SpanInScope
No exceptions are thrown when unbinding a span scope.
close() - Method in class brave.Tracing
Ensures this component can be garbage collected, by making it not Tracing.current()
context(TraceContext) - Method in class brave.propagation.TraceContextOrSamplingFlags.Builder
 
context() - Method in class brave.propagation.TraceContextOrSamplingFlags
 
context() - Method in class brave.Span
 
CountingSampler - Class in brave.sampler
This sampler is appropriate for low-traffic instrumentation (ex servers that each receive <100K requests), or those who do not provision random trace ids.
create(Tracing) - Static method in class brave.CurrentSpanCustomizer
Creates a span customizer that will affect the current span in scope if present
create() - Static method in class brave.propagation.CurrentTraceContext.Default
Uses a non-inheritable static thread local
create(Propagation.KeyFactory<K>) - Method in class brave.propagation.Propagation.Factory
 
create(String) - Method in interface brave.propagation.Propagation.KeyFactory
 
create(TraceContext) - Static method in class brave.propagation.TraceContextOrSamplingFlags
 
create(TraceIdContext) - Static method in class brave.propagation.TraceContextOrSamplingFlags
 
create(SamplingFlags) - Static method in class brave.propagation.TraceContextOrSamplingFlags
 
create(TraceContext.Builder) - Static method in class brave.propagation.TraceContextOrSamplingFlags
Deprecated.
call one of the other factory methods vs allocating an exception
create(float) - Static method in class brave.sampler.BoundarySampler
 
create(float) - Static method in class brave.sampler.CountingSampler
 
create(DeclarativeSampler.RateForMethod<M>) - Static method in class brave.sampler.DeclarativeSampler
 
create(List<? extends ParameterizedSampler.Rule<P>>) - Static method in class brave.sampler.ParameterizedSampler
 
create(float) - Static method in class brave.sampler.Sampler
Returns a sampler, given a rate expressed as a percentage.
current(String) - Static method in class brave.propagation.ExtraFieldPropagation
Returns the value of the field with the specified key or null if not available
current() - Static method in class brave.Tracing
Returns the most recently created tracing component iff it hasn't been closed.
currentSpan() - Method in class brave.Tracer
Returns the current span in scope or null if there isn't one.
CurrentSpanCustomizer - Class in brave
Provides a mechanism for end users to be able to customise the current span.
currentTimeMicroseconds() - Method in interface brave.Clock
 
currentTimeMicroseconds() - Method in class brave.internal.Platform
gets a timestamp based on duration since the create tick.
CurrentTraceContext - Class in brave.propagation
This makes a given span the current span by placing it in scope (usually but not always a thread local scope).
CurrentTraceContext() - Constructor for class brave.propagation.CurrentTraceContext
 
currentTraceContext(CurrentTraceContext) - Method in class brave.Tracer.Builder
Deprecated.
 
currentTraceContext(CurrentTraceContext) - Method in class brave.Tracing.Builder
Responsible for implementing Tracer.currentSpan() and Tracer.withSpanInScope(Span).
currentTraceContext() - Method in class brave.Tracing
This supports in-process propagation, typically across thread boundaries.
CurrentTraceContext.Default - Class in brave.propagation
Default implementation which is backed by a static thread local.
CurrentTraceContext.Scope - Interface in brave.propagation
A span remains in the scope it was bound to until close is called.
currentTracer() - Static method in class brave.Tracing
Returns the most recently created tracer iff its component hasn't been closed.

D

debug(boolean) - Method in class brave.propagation.SamplingFlags.Builder
 
DEBUG - Static variable in class brave.propagation.SamplingFlags
 
debug() - Method in class brave.propagation.SamplingFlags
True is a request to store this span even if it overrides sampling policy.
debug(boolean) - Method in class brave.propagation.TraceContext.Builder
 
debug(boolean) - Method in class brave.propagation.TraceIdContext.Builder
 
DeclarativeSampler<M> - Class in brave.sampler
This is an implementation of how to decide whether to trace a request using annotations on a java method.
DeclarativeSampler.RateForMethod<M> - Interface in brave.sampler
 
Default() - Constructor for class brave.propagation.CurrentTraceContext.Default
Deprecated.
prefer CurrentTraceContext.Default.create() as it isn't inheritable, so can't leak contexts.
delegate() - Method in class brave.internal.WrappingExecutorService
 

E

EMPTY - Static variable in class brave.propagation.SamplingFlags
 
EMPTY - Static variable in class brave.propagation.TraceContextOrSamplingFlags
 
equals(Object) - Method in class brave.propagation.TraceContextOrSamplingFlags
 
execute(Runnable) - Method in class brave.internal.WrappingExecutorService
 
executor(Executor) - Method in class brave.propagation.CurrentTraceContext
Decorates the input such that the current trace context at the time a task is scheduled is made current when the task is executed.
executorService(ExecutorService) - Method in class brave.propagation.CurrentTraceContext
Decorates the input such that the current trace context at the time a task is scheduled is made current when the task is executed.
extra(List<Object>) - Method in class brave.propagation.TraceContext.Builder
 
extra() - Method in class brave.propagation.TraceContext
Returns a list of additional data propagated through this trace.
extra(List<Object>) - Method in class brave.propagation.TraceContextOrSamplingFlags.Builder
Shares the input with the builder, replacing any current data in the builder.
extra() - Method in class brave.propagation.TraceContextOrSamplingFlags
Non-empty when TraceContextOrSamplingFlags.context() is null: A list of additional data extracted from the carrier.
extract(C) - Method in interface brave.propagation.TraceContext.Extractor
Returns either a trace context or sampling flags parsed from the carrier.
extractor(Propagation.Getter<C, K>) - Method in class brave.propagation.B3Propagation
 
extractor(Propagation.Getter<C, K>) - Method in class brave.propagation.ExtraFieldPropagation
 
extractor(Propagation.Getter<C, K>) - Method in interface brave.propagation.Propagation
 
ExtraFieldPropagation<K> - Class in brave.propagation
Allows you to propagate predefined request-scoped fields, usually but not always HTTP headers.

F

FACTORY - Static variable in class brave.propagation.B3Propagation
 
Factory() - Constructor for class brave.propagation.Propagation.Factory
 
finish(TraceContext, long) - Method in class brave.internal.recorder.Recorder
 
finish() - Method in class brave.Span
Reports the span complete, assigning the most precise duration possible.
finish(long) - Method in class brave.Span
Like Span.finish(), except with a given timestamp in microseconds.
flush(TraceContext) - Method in class brave.internal.recorder.Recorder
 
flush() - Method in class brave.Span
Reports the span, even if unfinished.

G

get() - Static method in class brave.internal.Platform
 
get() - Method in class brave.propagation.CurrentTraceContext.Default
 
get() - Method in class brave.propagation.CurrentTraceContext
Returns the current span in scope or null if there isn't one.
get(TraceContext, String) - Static method in class brave.propagation.ExtraFieldPropagation
Returns the value of the field with the specified key or null if not available
get(C, K) - Method in interface brave.propagation.Propagation.Getter
 
get() - Method in class brave.propagation.StrictCurrentTraceContext
 
get(M) - Method in interface brave.sampler.DeclarativeSampler.RateForMethod
Returns null if there's no configured rate for this method

H

hashCode() - Method in class brave.propagation.TraceContextOrSamplingFlags
 
HexCodec - Class in brave.internal
 

I

inheritable() - Static method in class brave.propagation.CurrentTraceContext.Default
Uses an inheritable static thread local which allows arbitrary calls to Thread.start() to automatically inherit this context.
inject(TraceContext, C) - Method in interface brave.propagation.TraceContext.Injector
Usually calls a setter for each propagation field to send downstream.
injector(Propagation.Setter<C, K>) - Method in class brave.propagation.B3Propagation
 
injector(Propagation.Setter<C, K>) - Method in class brave.propagation.ExtraFieldPropagation
 
injector(Propagation.Setter<C, K>) - Method in interface brave.propagation.Propagation
Replaces a propagated field with the given value.
instance - Static variable in class brave.internal.Internal
 
Internal - Class in brave.internal
Allows internal classes outside the package brave to use non-public methods.
Internal() - Constructor for class brave.internal.Internal
 
invokeAll(Collection<? extends Callable<T>>) - Method in class brave.internal.WrappingExecutorService
 
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class brave.internal.WrappingExecutorService
 
invokeAny(Collection<? extends Callable<T>>) - Method in class brave.internal.WrappingExecutorService
 
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class brave.internal.WrappingExecutorService
 
isNoop() - Method in class brave.Span
When true, no recording is done and nothing is reported to zipkin.
isNoop() - Method in class brave.Tracing
When true, no recording is done and nothing is reported to zipkin.
isSampled(long) - Method in class brave.sampler.BoundarySampler
Returns true when abs(traceId) <= boundary
isSampled(long) - Method in class brave.sampler.CountingSampler
loops over the pre-canned decisions, resetting to zero when it gets to the end.
isSampled(long) - Method in class brave.sampler.Sampler
Returns true if the trace ID should be measured.
isShutdown() - Method in class brave.internal.WrappingExecutorService
 
isTerminated() - Method in class brave.internal.WrappingExecutorService
 

J

joinSpan(TraceContext) - Method in class brave.Tracer
Joining is re-using the same trace and span ids extracted from an incoming RPC request.

K

keys() - Method in class brave.propagation.B3Propagation
 
keys() - Method in class brave.propagation.ExtraFieldPropagation
 
keys() - Method in interface brave.propagation.Propagation
The propagation fields defined.
kind(TraceContext, Span.Kind) - Method in class brave.internal.recorder.Recorder
 
kind(Span.Kind) - Method in class brave.Span
The kind of span is optional.

L

localEndpoint() - Method in class brave.internal.Platform
 
localEndpoint(Endpoint) - Method in class brave.Tracer.Builder
Deprecated.
use Tracer.Builder.localEndpoint(Endpoint), possibly with Endpoint.toV2()
localEndpoint(Endpoint) - Method in class brave.Tracer.Builder
Deprecated.
 
localEndpoint(Endpoint) - Method in class brave.Tracing.Builder
Deprecated.
use Tracing.Builder.localEndpoint(Endpoint), possibly with Endpoint.toV2()
localEndpoint(Endpoint) - Method in class brave.Tracing.Builder
 
localServiceName(String) - Method in class brave.Tracer.Builder
Deprecated.
 
localServiceName(String) - Method in class brave.Tracing.Builder
Controls the name of the service being traced, while still using a default site-local IP.
lowerHexToUnsignedLong(CharSequence) - Static method in class brave.internal.HexCodec
Parses a 1 to 32 character lower-hex string with no prefix into an unsigned long, tossing any bits higher than 64.
lowerHexToUnsignedLong(CharSequence, int) - Static method in class brave.internal.HexCodec
Parses a 16 character lower-hex string with no prefix into an unsigned long, starting at the specified index.

M

matches(P) - Method in class brave.sampler.ParameterizedSampler.Rule
Returns true if this rule matches the input parameters

N

name(String) - Method in class brave.CurrentSpanCustomizer
Sets the string name for the logical operation this span represents.
name(TraceContext, String) - Method in class brave.internal.recorder.Recorder
 
name(String) - Method in class brave.Span
Sets the string name for the logical operation this span represents.
name(String) - Method in interface brave.SpanCustomizer
Sets the string name for the logical operation this span represents.
NEVER_SAMPLE - Static variable in class brave.sampler.Sampler
 
newBuilder() - Static method in class brave.propagation.TraceContext
 
newBuilder() - Static method in class brave.propagation.TraceContextOrSamplingFlags
 
newBuilder() - Static method in class brave.propagation.TraceIdContext
 
newBuilder() - Static method in class brave.Tracer
Deprecated.
newBuilder() - Static method in class brave.Tracing
 
newChild(TraceContext) - Method in class brave.Tracer
Explicitly creates a child within an existing.
newFactory(Propagation.Factory, String...) - Static method in class brave.propagation.ExtraFieldPropagation
Wraps an underlying propagation implementation, pushing one or more fields
newFactory(Propagation.Factory, Collection<String>) - Static method in class brave.propagation.ExtraFieldPropagation
Wraps an underlying propagation implementation, pushing one or more fields
newScope(TraceContext) - Method in class brave.propagation.CurrentTraceContext.Default
 
newScope(TraceContext) - Method in class brave.propagation.CurrentTraceContext
Sets the current span in scope until the returned object is closed.
newScope(TraceContext) - Method in class brave.propagation.StrictCurrentTraceContext
Identifies problems by throwing assertion errors when a scope is closed on a different thread.
newTrace() - Method in class brave.Tracer
Explicitly creates a new trace.
newTrace(SamplingFlags) - Method in class brave.Tracer
Like Tracer.newTrace(), but supports parameterized sampling, for example limiting on operation or url pattern.
nextSpan(TraceContextOrSamplingFlags) - Method in class brave.Tracer
This creates a new span based on parameters extracted from an incoming request.
nextSpan() - Method in class brave.Tracer
Returns a new child span if there's a Tracer.currentSpan() or a new trace if there isn't.
nextTraceIdHigh() - Method in class brave.internal.Platform
Returns the high 8-bytes for use in 128-bit trace IDs.
NOT_SAMPLED - Static variable in class brave.propagation.SamplingFlags
 
Nullable - Annotation Type in brave.internal
Libraries such as Guice and AutoValue will process any annotation named Nullable.

P

ParameterizedSampler<P> - Class in brave.sampler
This is an implementation of how to decide whether to trace a request using ordered rules.
ParameterizedSampler.Rule<P> - Class in brave.sampler
 
parentId(Long) - Method in class brave.propagation.TraceContext.Builder
 
parentId() - Method in class brave.propagation.TraceContext
The parent's TraceContext.spanId() or null if this the root span in a trace.
Platform - Class in brave.internal
Access to platform-specific features and implements a default logging spanReporter.
Propagation<K> - Interface in brave.propagation
Injects and extracts trace identifiers as text into carriers that travel in-band across process boundaries.
propagation() - Method in class brave.Tracing
When a trace leaves the process, it needs to be propagated, usually via headers.
Propagation.Factory - Class in brave.propagation
 
Propagation.Getter<C,K> - Interface in brave.propagation
Gets the first value of the given propagation key or returns null
Propagation.KeyFactory<K> - Interface in brave.propagation
Creates keys for use in propagated contexts
Propagation.Setter<C,K> - Interface in brave.propagation
Replaces a propagated key with the given value
propagationFactory(Propagation.Factory) - Method in class brave.Tracing.Builder
Controls how trace contexts are injected or extracted from remote requests, such as from http headers.
propagationFactory() - Method in class brave.Tracing
This supports edge cases like GRPC Metadata propagation which doesn't use String keys.
put(C, K, String) - Method in interface brave.propagation.Propagation.Setter
 

R

randomLong() - Method in class brave.internal.Platform
This class uses pseudo-random number generators to provision IDs.
Recorder - Class in brave.internal.recorder
Dispatches mutations on a span to a shared object per trace/span id.
Recorder(Endpoint, Clock, Reporter<Span>, AtomicBoolean) - Constructor for class brave.internal.recorder.Recorder
 
remoteEndpoint(TraceContext, Endpoint) - Method in class brave.internal.recorder.Recorder
 
remoteEndpoint(Endpoint) - Method in class brave.Span
Deprecated.
use Span.remoteEndpoint(Endpoint), possibly with Endpoint.toV2()
remoteEndpoint(Endpoint) - Method in class brave.Span
For a client span, this would be the server's address.
report(Span) - Method in class brave.internal.Platform
 
reporter(Reporter<Span>) - Method in class brave.Tracer.Builder
reporter(Reporter<Span>) - Method in class brave.Tracing.Builder
requires128BitTraceId() - Method in class brave.propagation.Propagation.Factory
 
Rule(float) - Constructor for class brave.sampler.ParameterizedSampler.Rule
 

S

sample(M) - Method in class brave.sampler.DeclarativeSampler
 
sample(P) - Method in class brave.sampler.ParameterizedSampler
 
sampled(Boolean) - Method in class brave.propagation.SamplingFlags.Builder
 
SAMPLED - Static variable in class brave.propagation.SamplingFlags
 
sampled() - Method in class brave.propagation.SamplingFlags
Should we sample this request or not? True means sample, false means don't, null means we defer decision to someone further down in the stack.
sampled(Boolean) - Method in class brave.propagation.TraceContext.Builder
 
sampled() - Method in class brave.propagation.TraceContext
 
sampled() - Method in class brave.propagation.TraceContextOrSamplingFlags
Returns SamplingFlags.sampled(), regardless of subtype.
sampled(Boolean) - Method in class brave.propagation.TraceContextOrSamplingFlags
 
sampled(Boolean) - Method in class brave.propagation.TraceIdContext.Builder
 
sampled() - Method in class brave.propagation.TraceIdContext
 
Sampler - Class in brave.sampler
Sampler is responsible for deciding if a particular trace should be "sampled", i.e.
Sampler() - Constructor for class brave.sampler.Sampler
 
sampler(Sampler) - Method in class brave.Tracer.Builder
Deprecated.
 
sampler(Sampler) - Method in class brave.Tracing.Builder
Sampler is responsible for deciding if a particular trace should be "sampled", i.e.
SamplingFlags - Class in brave.propagation
 
samplingFlags(SamplingFlags) - Method in class brave.propagation.TraceContextOrSamplingFlags.Builder
 
samplingFlags() - Method in class brave.propagation.TraceContextOrSamplingFlags
 
SamplingFlags.Builder - Class in brave.propagation
 
setNoop(boolean) - Method in class brave.Tracing
Set true to drop data and only return noop spans regardless of sampling policy.
shared(boolean) - Method in class brave.propagation.TraceContext.Builder
 
shared() - Method in class brave.propagation.TraceContext
True if we are contributing to a span started by another tracer (ex on a different host).
shutdown() - Method in class brave.internal.WrappingExecutorService
 
shutdownNow() - Method in class brave.internal.WrappingExecutorService
 
Span - Class in brave
Used to model the latency of an operation.
Span() - Constructor for class brave.Span
 
Span.Kind - Enum in brave
 
SpanCustomizer - Interface in brave
Simple interface users can customize a span with.
spanId(long) - Method in class brave.propagation.TraceContext.Builder
 
spanId() - Method in class brave.propagation.TraceContext
Unique 8-byte identifier of this span within a trace.
spanReporter(Reporter<Span>) - Method in class brave.Tracer.Builder
Deprecated.
 
spanReporter(Reporter<Span>) - Method in class brave.Tracing.Builder
Controls how spans are reported.
start(TraceContext, long) - Method in class brave.internal.recorder.Recorder
 
start() - Method in class brave.Span
Starts the span with an implicit timestamp.
start(long) - Method in class brave.Span
Like Span.start(), except with a given timestamp in microseconds.
StrictCurrentTraceContext - Class in brave.propagation
Useful when developing instrumentation as state is enforced more strictly.
StrictCurrentTraceContext() - Constructor for class brave.propagation.StrictCurrentTraceContext
 
STRING - Static variable in interface brave.propagation.Propagation.KeyFactory
 
submit(Callable<T>) - Method in class brave.internal.WrappingExecutorService
 
submit(Runnable) - Method in class brave.internal.WrappingExecutorService
 
submit(Runnable, T) - Method in class brave.internal.WrappingExecutorService
 
supportsJoin() - Method in class brave.propagation.Propagation.Factory
Does the propagation implementation support sharing client and server span IDs.
supportsJoin(boolean) - Method in class brave.Tracer.Builder
Deprecated.
 
supportsJoin(boolean) - Method in class brave.Tracing.Builder
True means the tracing system supports sharing a span ID between a Span.Kind.CLIENT and Span.Kind.SERVER span.

T

tag(String, String) - Method in class brave.CurrentSpanCustomizer
Tags give your span context for search, viewing and analysis.
tag(TraceContext, String, String) - Method in class brave.internal.recorder.Recorder
 
tag(String, String) - Method in class brave.Span
Tags give your span context for search, viewing and analysis.
tag(String, String) - Method in interface brave.SpanCustomizer
Tags give your span context for search, viewing and analysis.
timestamp(Tracer, TraceContext) - Method in class brave.internal.Internal
 
timestamp(TraceContext) - Method in class brave.internal.recorder.Recorder
Hook needed for Brave 3's LocalTracer.finish(duration)
toBuilder() - Method in class brave.propagation.TraceContext
 
toBuilder() - Method in class brave.propagation.TraceContextOrSamplingFlags
 
toBuilder() - Method in class brave.propagation.TraceIdContext
 
toLowerHex(long, long) - Static method in class brave.internal.HexCodec
Returns 16 or 32 character hex string depending on if high is zero.
toLowerHex(long) - Static method in class brave.internal.HexCodec
Inspired by okio.Buffer.writeLong
toSpan(TraceContext) - Method in class brave.Tracer
Converts the context as-is to a Span object
toString() - Method in class brave.propagation.TraceContext
Returns $traceId/$spanId
toString() - Method in class brave.propagation.TraceContextOrSamplingFlags
 
toString() - Method in class brave.propagation.TraceIdContext
Returns $traceId
toString() - Method in class brave.sampler.BoundarySampler
 
toString() - Method in class brave.sampler.CountingSampler
 
toString() - Method in class brave.Tracer.SpanInScope
 
TraceContext - Class in brave.propagation
Contains trace identifiers and sampling data propagated in and out-of-process.
TraceContext.Builder - Class in brave.propagation
 
TraceContext.Extractor<C> - Interface in brave.propagation
Used to join an incoming trace.
TraceContext.Injector<C> - Interface in brave.propagation
Used to send the trace context downstream.
TraceContextOrSamplingFlags - Class in brave.propagation
Union type that contains only one of trace context, trace ID context or sampling flags.
TraceContextOrSamplingFlags.Builder - Class in brave.propagation
 
traceId(long) - Method in class brave.propagation.TraceContext.Builder
 
traceId() - Method in class brave.propagation.TraceContext
Unique 8-byte identifier for a trace, set on all spans within it.
traceId(long) - Method in class brave.propagation.TraceIdContext.Builder
 
traceId() - Method in class brave.propagation.TraceIdContext
Unique 8-byte identifier for a trace, set on all spans within it.
traceId128Bit(boolean) - Method in class brave.Tracer.Builder
Deprecated.
 
traceId128Bit(boolean) - Method in class brave.Tracing.Builder
When true, new root spans will have 128-bit trace IDs.
traceIdContext(TraceIdContext) - Method in class brave.propagation.TraceContextOrSamplingFlags.Builder
 
traceIdContext() - Method in class brave.propagation.TraceContextOrSamplingFlags
 
TraceIdContext - Class in brave.propagation
Contains inbound trace ID and sampling flags, used when users control the root trace ID, but not the span ID (ex Amazon X-Ray or other correlation).
TraceIdContext.Builder - Class in brave.propagation
 
traceIdHigh(long) - Method in class brave.propagation.TraceContext.Builder
 
traceIdHigh() - Method in class brave.propagation.TraceContext
When non-zero, the trace containing this span uses 128-bit trace identifiers.
traceIdHigh(long) - Method in class brave.propagation.TraceIdContext.Builder
 
traceIdHigh() - Method in class brave.propagation.TraceIdContext
When non-zero, the trace containing this span uses 128-bit trace identifiers.
traceIdString() - Method in class brave.propagation.TraceContext
Returns the hex representation of the span's trace ID
Tracer - Class in brave
Using a tracer, you can create a root span capturing the critical path of a request.
tracer() - Method in class brave.Tracing
All tracing commands start with a Span.
Tracer.Builder - Class in brave
Deprecated.
Please use Tracing.Builder
Tracer.SpanInScope - Class in brave
A span remains in the scope it was bound to until close is called.
Tracing - Class in brave
This provides utilities needed for trace instrumentation.
Tracing() - Constructor for class brave.Tracing
 
Tracing.Builder - Class in brave
 

V

valueOf(String) - Static method in enum brave.Span.Kind
Returns the enum constant of this type with the specified name.
values() - Static method in enum brave.Span.Kind
Returns an array containing the constants of this enum type, in the order they are declared.

W

withSpanInScope(Span) - Method in class brave.Tracer
Makes the given span the "current span" and returns an object that exits that scope on close.
wrap(Callable<C>) - Method in class brave.internal.WrappingExecutorService
 
wrap(Runnable) - Method in class brave.internal.WrappingExecutorService
 
wrap(Callable<C>) - Method in class brave.propagation.CurrentTraceContext
Wraps the input so that it executes with the same context as now.
wrap(Runnable) - Method in class brave.propagation.CurrentTraceContext
Wraps the input so that it executes with the same context as now.
WrappingExecutorService - Class in brave.internal
Used to implement a context propagating executor service which wraps tasks
WrappingExecutorService() - Constructor for class brave.internal.WrappingExecutorService
 
writeHexByte(char[], int, byte) - Static method in class brave.internal.HexCodec
 
writeHexLong(char[], int, long) - Static method in class brave.internal.HexCodec
Inspired by okio.Buffer.writeLong

Z

zipkinV1Present() - Method in class brave.internal.Platform
Ensure we don't raise a ClassNotFoundException calling deprecated methods
A B C D E F G H I J K L M N P R S T V W Z 
Skip navigation links

Copyright © 2017 OpenZipkin. All rights reserved.