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 |
withPriority(int priority) |
ServerTracingDynamicFeature.Builder |
withSerializationDecorators(List<InterceptorSpanDecorator> spanDecorators)
Set serialization span decorators.
|
ServerTracingDynamicFeature.Builder |
withSerializationPriority(int priority) |
ServerTracingDynamicFeature.Builder |
withTraceNothing()
Only resources annotated with
Traced will be traced. |
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 priority)
priority - the overriding priority for the registered component.
Default is Priorities.ENTITY_CODERPrioritiespublic ServerTracingDynamicFeature build()
ApplicationCopyright © 2017. All rights reserved.