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 voidonActivated(io.opentracing.Scope scope, io.opentracing.Span span)voidonBaggage(io.opentracing.Tracer tracer, io.opentracing.Span span, String baggageKey, String value)voidonClosing(io.opentracing.Scope scope, io.opentracing.Span span)LogCorrelationwithBaggage(String key)LogCorrelationwithBaggage(String baggageKey, String contextKey)LogCorrelationwithBaggage(Collection<String> keys)LogCorrelationwithBaggage(Map<String,String> mapping)LogCorrelationwithSpanId(String contextKey)LogCorrelationwithTraceId(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:
onActivatedin interfaceScopeListener
-
onBaggage
public void onBaggage(io.opentracing.Tracer tracer, io.opentracing.Span span, String baggageKey, String value)- Specified by:
onBaggagein interfaceBaggageListener
-
onClosing
public void onClosing(io.opentracing.Scope scope, io.opentracing.Span span)- Specified by:
onClosingin interfaceScopeListener
-
-