Module brave
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 fields when a scope is created or closed.CurrentTraceContextCustomizer This allows configuration plugins to collaborate on building an instance ofCurrentTraceContext.ExtraFieldCustomizer This allows configuration plugins to collaborate on building an instance ofExtraFieldPropagation.Factory.Propagation<K> Injects and extractstrace identifiersas text into carriers that travel in-band across process boundaries.Propagation.Getter<C,K> Gets the first value of the given propagation key or returns nullPropagation.KeyFactory<K> Creates keys for use in propagated contextsPropagation.Setter<C,K> Replaces a propagated key with the given valueTraceContext.Extractor<C> Used to continue an incoming trace.TraceContext.Injector<C> Used to send the trace context downstream. -
Class Summary Class Description B3Propagation<K> Implements B3 PropagationB3SingleFormat This format corresponds to the propagation key "b3" (or "B3"), which delimits fields in the following manner.B3SinglePropagation<K> Implements the propagation format described inB3SingleFormat.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> Allows you to propagate predefined request-scoped fields, usually but not always HTTP headers.ExtraFieldPropagation.Factory ExtraFieldPropagation.FactoryBuilder Propagation.Factory SamplingFlags SamplingFlags.Builder Deprecated. prefer using constants.StrictCurrentTraceContext Deprecated. use StrictScopeDecorator.StrictScopeDecorator Useful when developing instrumentation as state is enforced more strictly.ThreadLocalCurrentTraceContext In-process trace context propagation backed by a static thread local.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