public static class ServerTracingDynamicFeature.Builder extends Object
ServerSpanDecorator.STANDARD_TAGS which adds standard tags.
If you want to set different span name provide custom span decorator ServerSpanDecorator.| Constructor and Description |
|---|
Builder(io.opentracing.Tracer tracer) |
| Modifier and Type | Method and Description |
|---|---|
ServerTracingDynamicFeature |
build() |
ServerTracingDynamicFeature.Builder |
withDecorators(List<ServerSpanDecorator> spanDecorators)
Set span decorators.
|
ServerTracingDynamicFeature.Builder |
withJoinExistingActiveSpan(boolean joinExistingActiveSpan) |
ServerTracingDynamicFeature.Builder |
withOperationNameProvider(OperationNameProvider.Builder builder) |
ServerTracingDynamicFeature.Builder |
withPriority(int priority) |
ServerTracingDynamicFeature.Builder |
withSerializationDecorators(List<InterceptorSpanDecorator> spanDecorators)
Set serialization span decorators.
|
ServerTracingDynamicFeature.Builder |
withSerializationPriority(int serializationPriority) |
ServerTracingDynamicFeature.Builder |
withSkipPattern(String skipPattern) |
ServerTracingDynamicFeature.Builder |
withTraceNothing()
Only resources annotated with
Traced will be traced. |
ServerTracingDynamicFeature.Builder |
withTraceSerialization(boolean traceSerialization) |
public ServerTracingDynamicFeature.Builder withTraceNothing()
Traced will be traced.public ServerTracingDynamicFeature.Builder withDecorators(List<ServerSpanDecorator> spanDecorators)
spanDecorators - span decoratorpublic ServerTracingDynamicFeature.Builder withSerializationDecorators(List<InterceptorSpanDecorator> spanDecorators)
public ServerTracingDynamicFeature.Builder withPriority(int priority)
priority - the overriding priority for the registered component.
Default is Priorities.HEADER_DECORATORPrioritiespublic ServerTracingDynamicFeature.Builder withSerializationPriority(int serializationPriority)
serializationPriority - the overriding priority for the registered component.
Default is Priorities.ENTITY_CODERPrioritiespublic ServerTracingDynamicFeature.Builder withOperationNameProvider(OperationNameProvider.Builder builder)
builder - the builder for operation name providerpublic ServerTracingDynamicFeature.Builder withTraceSerialization(boolean traceSerialization)
traceSerialization - whether to trace serializationpublic ServerTracingDynamicFeature.Builder withSkipPattern(String skipPattern)
skipPattern - skip pattern e.g. /health|/statuspublic ServerTracingDynamicFeature.Builder withJoinExistingActiveSpan(boolean joinExistingActiveSpan)
joinExistingActiveSpan - If true, any active span on the on the current thread will
be used as a parent span. If false, parent span will be
extracted from HTTP headers.
This feature can be used when chaining spans from lower
instrumentation layers e.g. servlet instrumentation.
Default is false.public ServerTracingDynamicFeature build()
ApplicationCopyright © 2018–2022. All rights reserved.