java.lang.Object
io.lettuce.core.tracing.BraveTracing.Builder
- Enclosing class:
- BraveTracing
public static class BraveTracing.Builder extends Object
Builder for
BraveTracing.- Since:
- 5.2
-
Method Summary
Modifier and Type Method Description BraveTracingbuild()BraveTracing.BuilderendpointCustomizer(Consumer<zipkin2.Endpoint.Builder> endpointCustomizer)Sets anEndpointcustomizer to customize theEndpointthrough itsEndpoint.Builder.BraveTracing.BuilderexcludeCommandArgsFromSpanTags()Excludes command arguments fromSpantags.BraveTracing.BuilderincludeCommandArgsInSpanTags(boolean includeCommandArgsInSpanTags)Controls the inclusion of command arguments inSpantags.BraveTracing.BuilderserviceName(String serviceName)Sets the name used in theEndpoint.BraveTracing.BuilderspanCustomizer(BiConsumer<RedisCommand<Object,Object,Object>,brave.Span> spanCustomizer)BraveTracing.BuilderspanCustomizer(Consumer<brave.Span> spanCustomizer)Sets anSpancustomizer to customize theSpan.BraveTracing.Buildertracing(brave.Tracing tracing)Sets theTracing.
-
Method Details
-
tracing
Sets theTracing.- Parameters:
tracing- the BraveTracingobject, must not benull.- Returns:
thisBraveTracing.Builder.
-
serviceName
Sets the name used in theEndpoint.- Parameters:
serviceName- the name for theEndpoint, must not benull.- Returns:
thisBraveTracing.Builder.
-
excludeCommandArgsFromSpanTags
Excludes command arguments fromSpantags. Enabled by default.- Returns:
thisBraveTracing.Builder.
-
includeCommandArgsInSpanTags
Controls the inclusion of command arguments inSpantags. Enabled by default.- Parameters:
includeCommandArgsInSpanTags- the flag to enable or disable the inclusion of command args inSpantags.- Returns:
thisBraveTracing.Builder.
-
endpointCustomizer
public BraveTracing.Builder endpointCustomizer(Consumer<zipkin2.Endpoint.Builder> endpointCustomizer)Sets anEndpointcustomizer to customize theEndpointthrough itsEndpoint.Builder. The customizer is invoked beforebuildingthe endpoint.- Parameters:
endpointCustomizer- must not benull.- Returns:
thisBraveTracing.Builder.
-
spanCustomizer
Sets anSpancustomizer to customize theSpan. The customizer is invoked beforeSpan.finish()finishing} the span.- Parameters:
spanCustomizer- must not benull.- Returns:
thisBraveTracing.Builder.
-
spanCustomizer
public BraveTracing.Builder spanCustomizer(BiConsumer<RedisCommand<Object,Object,Object>,brave.Span> spanCustomizer)Sets anSpancustomizer to customize theSpanbased on the underlyingRedisCommand. The customizer is invoked beforeSpan.finish()finishing} the span.- Parameters:
spanCustomizer- must not benull.- Returns:
thisBraveTracing.Builder.- Since:
- 6.0
-
build
- Returns:
- a new instance of
BraveTracing
-