Class RequestContextCurrentTraceContextBuilder
java.lang.Object
brave.propagation.CurrentTraceContext.Builder
com.linecorp.armeria.common.brave.RequestContextCurrentTraceContextBuilder
A builder of
RequestContextCurrentTraceContext
to enable tracing of an Armeria-based application.-
Method Summary
Modifier and TypeMethodDescriptionaddScopeDecorator
(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 CurrentTraceContext.Builder addScopeDecorator(CurrentTraceContext.ScopeDecorator scopeDecorator) - Overrides:
addScopeDecorator
in classCurrentTraceContext.Builder
-
build
Returns a newly-createdRequestContextCurrentTraceContext
based on the configuration properties set so far.- Specified by:
build
in classCurrentTraceContext.Builder
-