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.Builder
addScopeDecorator
(brave.propagation.CurrentTraceContext.ScopeDecorator scopeDecorator) build()
Returns a newly-createdRequestContextCurrentTraceContext
based 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 of 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 of 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:
addScopeDecorator
in classbrave.propagation.CurrentTraceContext.Builder
-
build
Returns a newly-createdRequestContextCurrentTraceContext
based on the configuration properties set so far.- Specified by:
build
in classbrave.propagation.CurrentTraceContext.Builder
-