Package org.zalando.riptide.opentracing
Class OpenTracingPlugin
java.lang.Object
org.zalando.riptide.opentracing.OpenTracingPlugin
- All Implemented Interfaces:
Plugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionAllows to pass arbitrary span logs directly from a call site.Allows to pass a customizedoperation namedirectly from a call site.static final Attribute<io.opentracing.Span>Allows to pass an explicitSpandirectly from a call site.Allows to pass arbitrary span tags directly from a call site. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaroundDispatch(RequestExecution execution) aroundNetwork(RequestExecution execution) withActivation(Activation activation) withAdditionalSpanDecorators(SpanDecorator first, SpanDecorator... decorators) withInjection(org.zalando.riptide.opentracing.Injection injection) withLifecycle(Lifecycle lifecycle) withSpanDecorators(SpanDecorator decorator, SpanDecorator... decorators) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zalando.riptide.Plugin
aroundAsync, aroundSerialization
-
Field Details
-
SPAN
Allows to pass an explicitSpandirectly from a call site. -
OPERATION_NAME
Allows to pass a customizedoperation namedirectly from a call site. Defaults to theHTTP method. -
TAGS
Allows to pass arbitrary span tags directly from a call site. -
LOGS
Allows to pass arbitrary span logs directly from a call site.
-
-
Constructor Details
-
OpenTracingPlugin
public OpenTracingPlugin(io.opentracing.Tracer tracer)
-
-
Method Details
-
withLifecycle
-
withActivation
-
withInjection
@CheckReturnValue public OpenTracingPlugin withInjection(org.zalando.riptide.opentracing.Injection injection) -
withAdditionalSpanDecorators
@CheckReturnValue public OpenTracingPlugin withAdditionalSpanDecorators(SpanDecorator first, SpanDecorator... decorators) - Parameters:
first- first decoratordecorators- optional, remaining decorators- Returns:
- a new
OpenTracingPlugin
-
withSpanDecorators
@CheckReturnValue public OpenTracingPlugin withSpanDecorators(SpanDecorator decorator, SpanDecorator... decorators) - Parameters:
decorator- first decoratordecorators- optional, remaining decorators- Returns:
- a new
OpenTracingPlugin
-
aroundDispatch
- Specified by:
aroundDispatchin interfacePlugin
-
aroundNetwork
- Specified by:
aroundNetworkin interfacePlugin
-