- CLIENT - brave.Span.Kind
-
- clock() - Method in class brave.internal.Platform
-
- clock() - Method in class brave.Tracer
-
- clock() - Method in class brave.Tracing
-
- clock(Clock) - Method in class brave.Tracer.Builder
-
Deprecated.
- clock(Clock) - Method in class brave.Tracing.Builder
-
Assigns microsecond-resolution timestamp source for operations like
Span.start()
.
- clock(TraceContext) - Method in class brave.internal.recorder.Recorder
-
Returns a clock that ensures timestamp consistency across the trace
- clock(TraceContext) - Method in class brave.Tracing
-
This exposes the microsecond clock used by operations such as
Span.finish()
.
- Clock - Interface in brave
-
Epoch microseconds used for Span.timestamp
and Annotation.timestamp
.
- 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
-
- CONSUMER - brave.Span.Kind
-
When present,
Span.start()
is the moment a consumer received a message from an origin.
- context() - Method in class brave.propagation.TraceContextOrSamplingFlags
-
- context() - Method in class brave.ScopedSpan
-
Returns the trace context associated with this span
- context() - Method in class brave.Span
-
- context(TraceContext) - Method in class brave.propagation.TraceContextOrSamplingFlags.Builder
-
- 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() - Static method in class brave.propagation.CurrentTraceContext.Default
-
Uses a non-inheritable static thread local
- create(float) - Static method in class brave.sampler.BoundarySampler
-
- create(float) - Static method in class brave.sampler.CountingSampler
-
- create(float) - Static method in class brave.sampler.Sampler
-
Returns a sampler, given a rate expressed as a percentage.
- create(Propagation.KeyFactory<K>) - Method in class brave.propagation.Propagation.Factory
-
- create(SamplingFlags) - Static method in class brave.propagation.TraceContextOrSamplingFlags
-
- create(TraceContext) - Static method in class brave.propagation.TraceContextOrSamplingFlags
-
- create(TraceContext.Builder) - Static method in class brave.propagation.TraceContextOrSamplingFlags
-
- create(TraceIdContext) - Static method in class brave.propagation.TraceContextOrSamplingFlags
-
- create(DeclarativeSampler.RateForMethod<M>) - Static method in class brave.sampler.DeclarativeSampler
-
- create(Tracer) - Static method in class brave.propagation.ThreadLocalSpan
-
- create(Tracing) - Static method in class brave.CurrentSpanCustomizer
-
Creates a span customizer that will affect the current span in scope if present
- create(String) - Method in interface brave.propagation.Propagation.KeyFactory
-
- create(List<? extends ParameterizedSampler.Rule<P>>) - Static method in class brave.sampler.ParameterizedSampler
-
- current() - Static method in class brave.Tracing
-
Returns the most recently created tracing component iff it hasn't been closed.
- current(String) - Static method in class brave.propagation.ExtraFieldPropagation
-
- CURRENT_TRACER - Static variable in class brave.propagation.ThreadLocalSpan
-
- currentSpan() - Method in class brave.Tracer
-
Returns the current span in scope or null if there isn't one.
- currentSpanCustomizer() - Method in class brave.Tracer
-
Returns a customizer for current span in scope or noop 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
-
- currentTraceContext() - Method in class brave.Tracing
-
This supports in-process propagation, typically across thread boundaries.
- currentTraceContext(CurrentTraceContext) - Method in class brave.Tracer.Builder
-
Deprecated.
- currentTraceContext(CurrentTraceContext) - Method in class brave.Tracing.Builder
-
- 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.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 if its component hasn't been closed.
- customizer() - Method in class brave.Span
-
Returns a customizer appropriate for the current span.
- name(TraceContext, String) - Method in class brave.internal.recorder.Recorder
-
- name(String) - Method in class brave.CurrentSpanCustomizer
-
Sets the string name for the logical operation this span represents.
- name(String) - Method in enum brave.NoopSpanCustomizer
-
- 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
-
- newBuilder() - Static method in class brave.Tracing
-
- newChild(TraceContext) - Method in class brave.Tracer
-
Explicitly creates a child within an existing trace.
- 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
- newFactoryBuilder(Propagation.Factory) - Static method in class brave.propagation.ExtraFieldPropagation
-
- 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
-
- next() - Method in class brave.propagation.ThreadLocalSpan
-
- next(TraceContextOrSamplingFlags) - Method in class brave.propagation.ThreadLocalSpan
-
- nextSpan() - Method in class brave.Tracer
-
- nextSpan(TraceContextOrSamplingFlags) - Method in class brave.Tracer
-
This creates a new span based on parameters extracted from an incoming request.
- nextTraceIdHigh() - Method in class brave.internal.Platform
-
- NOOP - Static variable in class brave.ErrorParser
-
Adds no tags to the span representing the operation in error.
- NOOP - Static variable in interface brave.propagation.CurrentTraceContext.Scope
-
- NoopSpanCustomizer - Enum in brave
-
Performs no operations as the span represented by this is not sampled to report to the tracing
system.
- 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
.
- sample(M) - Method in class brave.sampler.DeclarativeSampler
-
- sample(P) - Method in class brave.sampler.ParameterizedSampler
-
- 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() - Method in class brave.propagation.TraceContext
-
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() - Method in class brave.propagation.TraceContextOrSamplingFlags
-
- sampled() - Method in class brave.propagation.TraceIdContext
-
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(boolean) - Method in class brave.propagation.TraceIdContext.Builder
-
- sampled(Boolean) - Method in class brave.propagation.SamplingFlags.Builder
-
- sampled(Boolean) - Method in class brave.propagation.TraceContext.Builder
-
- sampled(Boolean) - Method in class brave.propagation.TraceContextOrSamplingFlags
-
- sampled(Boolean) - Method in class brave.propagation.TraceIdContext.Builder
-
- SAMPLED - Static variable in class brave.propagation.SamplingFlags
-
- sampler() - Method in class brave.Tracing
-
Sampler is responsible for deciding if a particular trace should be "sampled", i.e.
- 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.
- 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
-
- samplingFlags() - Method in class brave.propagation.TraceContextOrSamplingFlags
-
- samplingFlags(SamplingFlags) - Method in class brave.propagation.TraceContextOrSamplingFlags.Builder
-
- SamplingFlags - Class in brave.propagation
-
- SamplingFlags.Builder - Class in brave.propagation
-
- ScopedSpan - Class in brave
-
Used to model the latency of an operation within a method block.
- SERVER - brave.Span.Kind
-
- set(TraceContext, String, String) - Static method in class brave.propagation.ExtraFieldPropagation
-
Sets the value of the field with the specified key, or drops if not a configured field
- set(String, String) - Static method in class brave.propagation.ExtraFieldPropagation
-
Sets the current value of the field with the specified key, or drops if not a configured field.
- setNoop(boolean) - Method in class brave.Tracing
-
Set true to drop data and only return
noop spans
regardless of sampling
policy.
- setShared(TraceContext) - Method in class brave.internal.recorder.Recorder
-
Indicates we are contributing to a span started by another tracer (ex on a different host).
- shared() - Method in class brave.propagation.TraceContext
-
- shared(boolean) - Method in class brave.propagation.TraceContext.Builder
-
- shutdown() - Method in class brave.internal.WrappingExecutorService
-
- shutdownNow() - Method in class brave.internal.WrappingExecutorService
-
- snapshot() - Method in class brave.internal.recorder.Recorder
-
Exposes which spans are in-flight, mostly for testing.
- Span - Class in brave
-
Used to model the latency of an operation.
- Span.Kind - Enum in brave
-
- SpanCustomizer - Interface in brave
-
Simple interface users can customize a span with.
- spanId() - Method in class brave.propagation.TraceContext
-
Unique 8-byte identifier of this span within a trace.
- spanId(long) - Method in class brave.propagation.TraceContext.Builder
-
- 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() - 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.
- start(TraceContext) - Method in class brave.internal.recorder.Recorder
-
- start(TraceContext, long) - Method in class brave.internal.recorder.Recorder
-
- startScopedSpan(String) - Method in class brave.Tracer
-
- startScopedSpanWithParent(String, TraceContext) - Method in class brave.Tracer
-
- 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(Runnable) - Method in class brave.internal.WrappingExecutorService
-
- submit(Runnable, T) - Method in class brave.internal.WrappingExecutorService
-
- submit(Callable<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
-
- tag(TraceContext, String, String) - Method in class brave.internal.recorder.Recorder
-
- tag(Object, String, String) - Method in class brave.ErrorParser
-
- tag(String, String) - Method in class brave.CurrentSpanCustomizer
-
Tags give your span context for search, viewing and analysis.
- tag(String, String) - Method in enum brave.NoopSpanCustomizer
-
- tag(String, String) - Method in class brave.ScopedSpan
-
Tags give your span context for search, viewing and analysis.
- 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.
- ThreadLocalSpan - Class in brave.propagation
-
This type allows you to place a span in scope in one method and access it in another without
using an explicit request parameter.
- toBuilder() - Method in class brave.propagation.TraceContext
-
- toBuilder() - Method in class brave.propagation.TraceContextOrSamplingFlags
-
- toBuilder() - Method in class brave.propagation.TraceIdContext
-
- toLowerHex(long) - Static method in class brave.internal.HexCodec
-
Inspired by okio.Buffer.writeLong
- toLowerHex(long, long) - Static method in class brave.internal.HexCodec
-
Returns 16 or 32 character hex string depending on if high
is zero.
- toSampler(M) - Method in class brave.sampler.DeclarativeSampler
-
- toSampler(M, Sampler) - Method in class brave.sampler.DeclarativeSampler
-
- toSpan(TraceContext) - Method in class brave.Tracer
-
Converts the context as-is to a Span object
- toSpan(Span) - Static method in class brave.internal.V2SpanConverter
-
Converts the input, parsing Span.kind()
into RPC annotations.
- 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
-
- toString() - Method in class brave.Tracer
-
- 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() - Method in class brave.propagation.TraceContext
-
Unique 8-byte identifier for a trace, set on all spans within it.
- traceId() - Method in class brave.propagation.TraceIdContext
-
Unique 8-byte identifier for a trace, set on all spans within it.
- traceId(long) - Method in class brave.propagation.TraceContext.Builder
-
- traceId(long) - Method in class brave.propagation.TraceIdContext.Builder
-
- 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() - Method in class brave.propagation.TraceContextOrSamplingFlags
-
- traceIdContext(TraceIdContext) - Method in class brave.propagation.TraceContextOrSamplingFlags.Builder
-
- 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() - Method in class brave.propagation.TraceContext
-
When non-zero, the trace containing this span uses 128-bit trace identifiers.
- traceIdHigh() - Method in class brave.propagation.TraceIdContext
-
When non-zero, the trace containing this span uses 128-bit trace identifiers.
- traceIdHigh(long) - Method in class brave.propagation.TraceContext.Builder
-
- traceIdHigh(long) - Method in class brave.propagation.TraceIdContext.Builder
-
- traceIdString() - Method in class brave.propagation.TraceContext
-
Returns the hex representation of the span's trace ID
- tracer() - Method in class brave.Tracing
-
All tracing commands start with a
Span
.
- Tracer - Class in brave
-
Using a tracer, you can create a root span capturing the critical path of a request.
- Tracer.Builder - Class in brave
-
- 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.Builder - Class in brave
-