public static class TracingConfiguration.Builder extends Object
| Constructor and Description |
|---|
Builder(io.opentracing.Tracer tracer) |
| Modifier and Type | Method and Description |
|---|---|
TracingConfiguration |
build() |
TracingConfiguration.Builder |
traceWithActiveSpanOnly(boolean traceWithActiveSpanOnly) |
TracingConfiguration.Builder |
withKeysMaxLength(int keysMaxLength)
Limit number of keys to add to span (default is 100)
|
TracingConfiguration.Builder |
withSpanNameProvider(Function<String,String> spanNameProvider)
Customize the span name, default is operation name (
RedisSpanNameProvider.OPERATION_NAME) |
public TracingConfiguration.Builder traceWithActiveSpanOnly(boolean traceWithActiveSpanOnly)
traceWithActiveSpanOnly - if true then create new spans only if there is
an active spanpublic TracingConfiguration.Builder withSpanNameProvider(Function<String,String> spanNameProvider)
RedisSpanNameProvider.OPERATION_NAME)spanNameProvider - function to customize the span namepublic TracingConfiguration.Builder withKeysMaxLength(int keysMaxLength)
keysMaxLength - max keys length to add to spanpublic TracingConfiguration build()
Copyright © 2017-2019–2019. All rights reserved.