Package brave.propagation
-
Interface Summary Interface Description CurrentTraceContext.Scope A span remains in the scope it was bound to until close is called.CurrentTraceContext.ScopeDecorator Use this to add features such as thread checks or log correlation when a scope is created or closed.CurrentTraceContextCustomizer This allows configuration plugins to collaborate on building an instance ofCurrentTraceContext
.ExtraFieldCustomizer Deprecated. Since 5.11 useBaggagePropagationCustomizer
Propagation<K> Injects and extractstrace identifiers
as text into requests that travel in-band across process boundaries.Propagation.Getter<R,K> Gets the first value of the given propagation key or returnsnull
.Propagation.KeyFactory<K> Deprecated. since 5.12 non-string keys are no longer supportedPropagation.RemoteGetter<R> Used as an input toPropagation.extractor(Getter)
extract the trace context and any baggage from propagated fields.Propagation.RemoteSetter<R> Used as an input toPropagation.injector(Setter)
inject the trace context and any baggage as propagated fields.Propagation.Setter<R,K> Replaces a propagated key with the given value.TraceContext.Extractor<R> Used to continue an incoming trace.TraceContext.Injector<R> Used to send the trace context downstream. -
Class Summary Class Description B3Propagation<K> Implements B3 PropagationB3Propagation.FactoryBuilder Defaults toB3Propagation.Format.MULTI
for client/server spans andB3Propagation.Format.SINGLE_NO_PARENT
for messaging.B3SingleFormat This format corresponds to the propagation key "b3" (or "B3"), which delimits fields in the following manner.B3SinglePropagation Deprecated. Since 5.9, useB3Propagation.newFactoryBuilder()
to control inject formats.CurrentTraceContext This makes a given span the current span by placing it in scope (usually but not always a thread local scope).CurrentTraceContext.Builder Implementations of this allow standardized configuration, for example scope decoration.CurrentTraceContext.Default Default implementation which is backed by a static thread local.ExtraFieldPropagation<K> Deprecated. Since 5.11 useBaggagePropagation
ExtraFieldPropagation.Factory Deprecated. Since 5.11 usePropagation.Factory
ExtraFieldPropagation.FactoryBuilder Deprecated. Since 5.11 useBaggagePropagation.FactoryBuilder
Propagation.Factory SamplingFlags SamplingFlags.Builder Deprecated. prefer using constants.StrictCurrentTraceContext Useful when developing instrumentation as state is enforced more strictly.StrictCurrentTraceContext.Builder StrictScopeDecorator Useful when developing instrumentation as state is enforced more strictly.ThreadLocalCurrentTraceContext In-process trace context propagation backed by a static thread local.ThreadLocalCurrentTraceContext.Builder ThreadLocalSpan This type allows you to place a span in scope in one method and access it in another without using an explicit request parameter.TraceContext Contains trace identifiers and sampling data propagated in and out-of-process.TraceContext.Builder TraceContextOrSamplingFlags Union type that contains only one of trace context, trace ID context or sampling flags.TraceContextOrSamplingFlags.Builder TraceIdContext 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 -
Enum Summary Enum Description B3Propagation.Format Describes the formats used to inject headers.