CurrentTraceContext.ScopeDecorator
public abstract class CorrelationFieldScopeDecorator extends Object implements CurrentTraceContext.ScopeDecorator
span is current
.Constructor | Description |
---|---|
CorrelationFieldScopeDecorator() |
Modifier and Type | Method | Description |
---|---|---|
CurrentTraceContext.Scope |
decorateScope(TraceContext currentSpan,
CurrentTraceContext.Scope scope) |
When the input is not null "traceId", "parentId" and "spanId" correlation properties are saved
off and replaced with those of the current span.
|
protected abstract String |
get(String key) |
Returns the correlation property of the specified name iff it is a string, or null otherwise.
|
protected abstract void |
put(String key,
String value) |
Replaces the correlation property of the specified name
|
protected abstract void |
remove(String key) |
Removes the correlation property of the specified name
|
public CurrentTraceContext.Scope decorateScope(@Nullable TraceContext currentSpan, CurrentTraceContext.Scope scope)
decorateScope
in interface CurrentTraceContext.ScopeDecorator
@Nullable protected abstract String get(String key)
protected abstract void put(String key, String value)
protected abstract void remove(String key)
Copyright © 2018 OpenZipkin. All rights reserved.