public static class ServerTracingInterceptor.Builder extends Object
Constructor and Description |
---|
Builder()
Creates a Builder using GlobalTracer to get tracer
|
Builder(io.opentracing.Tracer tracer) |
Modifier and Type | Method and Description |
---|---|
ServerTracingInterceptor |
build() |
ServerTracingInterceptor.Builder |
withOperationName(OperationNameConstructor operationNameConstructor) |
ServerTracingInterceptor.Builder |
withServerSpanDecorator(ServerSpanDecorator serverSpanDecorator)
Decorates the server span with custom data.
|
ServerTracingInterceptor.Builder |
withStreaming()
Logs streaming events to server spans.
|
ServerTracingInterceptor.Builder |
withTracedAttributes(ServerTracingInterceptor.ServerRequestAttribute... attributes) |
ServerTracingInterceptor.Builder |
withVerbosity()
Logs all request life-cycle events to server spans.
|
public Builder()
public Builder(io.opentracing.Tracer tracer)
tracer
- to use for this intercepter
Creates a Builder with default configurationpublic ServerTracingInterceptor.Builder withOperationName(OperationNameConstructor operationNameConstructor)
operationNameConstructor
- for all spans created by this intercepterpublic ServerTracingInterceptor.Builder withTracedAttributes(ServerTracingInterceptor.ServerRequestAttribute... attributes)
attributes
- to set as tags on server spans
created by this intercepterpublic ServerTracingInterceptor.Builder withStreaming()
public ServerTracingInterceptor.Builder withVerbosity()
public ServerTracingInterceptor.Builder withServerSpanDecorator(ServerSpanDecorator serverSpanDecorator)
serverSpanDecorator
- used to decorate the server spanpublic ServerTracingInterceptor build()
Copyright © 2017-2018–2018. All rights reserved.