Package brave.test.propagation
Class CurrentTraceContextTest
- java.lang.Object
-
- brave.test.propagation.CurrentTraceContextTest
-
public abstract class CurrentTraceContextTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TraceContext
context
protected static CorrelationScopeConfig.SingleCorrelationField
CORRELATION_FIELD
protected CurrentTraceContext
currentTraceContext
protected TraceContext
notYetSampledContext
protected TraceContext
unsampledContext
-
Constructor Summary
Constructors Modifier Constructor Description protected
CurrentTraceContextTest()
-
Method Summary
-
-
-
Field Detail
-
CORRELATION_FIELD
protected static final CorrelationScopeConfig.SingleCorrelationField CORRELATION_FIELD
-
currentTraceContext
protected final CurrentTraceContext currentTraceContext
-
context
protected final TraceContext context
-
notYetSampledContext
protected final TraceContext notYetSampledContext
-
unsampledContext
protected final TraceContext unsampledContext
-
-
Method Detail
-
builderSupplier
protected abstract Class<? extends Supplier<CurrentTraceContext.Builder>> builderSupplier()
-
verifyImplicitContext
protected void verifyImplicitContext(@Nullable TraceContext context)
-
currentSpan_defaultsToNull
public void currentSpan_defaultsToNull()
-
newScope_retainsContext
public void newScope_retainsContext()
-
maybeScope_retainsContext
public void maybeScope_retainsContext()
-
newScope_noticesDifferentBaggageField
public void newScope_noticesDifferentBaggageField()
-
ignoresNoopScopeDecorator
public void ignoresNoopScopeDecorator()
-
newScope_decoratesWithDifferentScope
public void newScope_decoratesWithDifferentScope()
-
maybeScope_decoratesWithDifferentScope
public void maybeScope_decoratesWithDifferentScope()
-
newScope_noticesDifferentSpanId
public void newScope_noticesDifferentSpanId()
-
maybeScope_noticesDifferentSpanId
public void maybeScope_noticesDifferentSpanId()
-
newScope_noticesDifferentContext
public void newScope_noticesDifferentContext()
-
maybeScope_noticesDifferentContext
public void maybeScope_noticesDifferentContext()
-
maybeScope_doesntDuplicateContext
public void maybeScope_doesntDuplicateContext()
-
newScope_canClearScope
public void newScope_canClearScope()
-
maybeScope_canClearScope
public void maybeScope_canClearScope()
-
maybeScope_doesntDuplicateContext_onNull
public void maybeScope_doesntDuplicateContext_onNull()
-
is_inheritable
protected void is_inheritable(CurrentTraceContext inheritableCurrentTraceContext) throws Exception
- Throws:
Exception
-
attachesSpanInCallable_canClear
public void attachesSpanInCallable_canClear() throws Exception
- Throws:
Exception
-
restoresSpanAfterCallable
public void restoresSpanAfterCallable() throws Exception
- Throws:
Exception
-
attachesSpanInRunnable
public void attachesSpanInRunnable()
-
restoresSpanAfterRunnable
public void restoresSpanAfterRunnable() throws Exception
- Throws:
Exception
-
unloadable_unused
public void unloadable_unused()
-
unloadable_afterScopeClose
public void unloadable_afterScopeClose()
-
notUnloadable_whenScopeLeaked
public void notUnloadable_whenScopeLeaked()
TODO: While it is an instrumentation bug to not close a scope, we should be tolerant. For example, considering weak references or similar.
-
-