Class LogCorrelation
- java.lang.Object
-
- org.zalando.opentracing.proxy.plugin.LogCorrelation
-
- All Implemented Interfaces:
BaggageListener
,ScopeListener
,Plugin
@API(status=EXPERIMENTAL) public final class LogCorrelation extends Object implements ScopeListener, BaggageListener
-
-
Field Summary
-
Fields inherited from interface org.zalando.opentracing.proxy.listen.baggage.BaggageListener
DEFAULT
-
Fields inherited from interface org.zalando.opentracing.proxy.listen.scope.ScopeListener
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description LogCorrelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onActivated(io.opentracing.Scope scope, io.opentracing.Span span)
void
onBaggage(io.opentracing.Tracer tracer, io.opentracing.Span span, String baggageKey, String value)
void
onClosing(io.opentracing.Scope scope, io.opentracing.Span span)
LogCorrelation
withBaggage(String key)
LogCorrelation
withBaggage(String baggageKey, String contextKey)
LogCorrelation
withBaggage(Collection<String> keys)
LogCorrelation
withBaggage(Map<String,String> mapping)
LogCorrelation
withSpanId(String contextKey)
LogCorrelation
withTraceId(String contextKey)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.zalando.opentracing.proxy.listen.scope.ScopeListener
onClosed
-
-
-
-
Method Detail
-
withTraceId
public LogCorrelation withTraceId(String contextKey)
-
withSpanId
public LogCorrelation withSpanId(String contextKey)
-
withBaggage
public LogCorrelation withBaggage(String key)
-
withBaggage
public LogCorrelation withBaggage(Collection<String> keys)
-
withBaggage
public LogCorrelation withBaggage(String baggageKey, String contextKey)
-
withBaggage
public LogCorrelation withBaggage(Map<String,String> mapping)
-
onActivated
public void onActivated(io.opentracing.Scope scope, io.opentracing.Span span)
- Specified by:
onActivated
in interfaceScopeListener
-
onBaggage
public void onBaggage(io.opentracing.Tracer tracer, io.opentracing.Span span, String baggageKey, String value)
- Specified by:
onBaggage
in interfaceBaggageListener
-
onClosing
public void onClosing(io.opentracing.Scope scope, io.opentracing.Span span)
- Specified by:
onClosing
in interfaceScopeListener
-
-