Class RequestContextCurrentTraceContextBuilder
java.lang.Object
brave.propagation.CurrentTraceContext.Builder
com.linecorp.armeria.common.brave.RequestContextCurrentTraceContextBuilder
public final class RequestContextCurrentTraceContextBuilder
extends brave.propagation.CurrentTraceContext.Builder
A builder of
RequestContextCurrentTraceContext to enable tracing of an Armeria-based application.-
Method Summary
Modifier and TypeMethodDescriptionbrave.propagation.CurrentTraceContext.BuilderaddScopeDecorator(brave.propagation.CurrentTraceContext.ScopeDecorator scopeDecorator) build()Returns a newly-createdRequestContextCurrentTraceContextbased on the configuration properties set so far.nonRequestThread(String pattern) Sets a regular expression that matches names of threads that should be considered non-request threads, meaning they may have spans created for clients outside the context of an Armeria request.nonRequestThread(Pattern pattern) Sets a regular expression that matches names of threads that should be considered non-request threads, meaning they may have spans created for clients outside of the context of an Armeria request.
-
Method Details
-
nonRequestThread
Sets a regular expression that matches names of threads that should be considered non-request threads, meaning they may have spans created for clients outside the context of an Armeria request. For example, this can be set to"RMI TCP Connection"if you use RMI to serve monitoring requests. -
nonRequestThread
Sets a regular expression that matches names of threads that should be considered non-request threads, meaning they may have spans created for clients outside of the context of an Armeria request. For example, this can be set toPattern.compile("RMI TCP Connection")if you use RMI to serve monitoring requests. -
addScopeDecorator
public brave.propagation.CurrentTraceContext.Builder addScopeDecorator(brave.propagation.CurrentTraceContext.ScopeDecorator scopeDecorator) - Overrides:
addScopeDecoratorin classbrave.propagation.CurrentTraceContext.Builder
-
build
Returns a newly-createdRequestContextCurrentTraceContextbased on the configuration properties set so far.- Specified by:
buildin classbrave.propagation.CurrentTraceContext.Builder
-