Index

A B C E G I J M N O P R S T U V 
All Classes All Packages

A

accept(V, Throwable) - Method in class brave.test.util.AssertableCallback
 
apply(Statement, Description) - Method in class brave.test.IntegrationTestSpanHandler
 
AssertableCallback<V> - Class in brave.test.util
A callback of a single result or error that supports assertions.
AssertableCallback() - Constructor for class brave.test.util.AssertableCallback
 
assertChildOf(MutableSpan, MutableSpan) - Method in class brave.test.ITRemote
 
assertChildOf(MutableSpan, TraceContext) - Method in class brave.test.ITRemote
 
assertChildOf(TraceContext, TraceContext) - Method in class brave.test.ITRemote
 
assertNoError(MutableSpan) - Method in class brave.test.ITRemote
 
assertNoErrorTag(MutableSpan) - Method in class brave.test.ITRemote
 
assertRunIsUnloadable(Class<? extends Runnable>, ClassLoader) - Static method in class brave.test.util.ClassLoaders
Runs the type in a new classloader that recreates brave classes
assertRunIsUnloadableWithSupplier(Class<? extends ClassLoaders.ConsumerRunnable<T>>, Class<? extends Supplier<? extends T>>) - Static method in class brave.test.util.ClassLoaders
Runs the assertion in a new classloader.
assertSameIds(MutableSpan, TraceContext) - Method in class brave.test.ITRemote
Useful for checking server spans when Tracing.Builder.supportsJoin(boolean).
assertSequential(MutableSpan, MutableSpan) - Method in class brave.test.ITRemote
Ensures the first finished before the other started.
assertSpanInInterval(MutableSpan, long, long) - Method in class brave.test.ITRemote
Ensures the inputs are parent and child, the parent starts before the child, and the duration of the child is inside the parent's duration.
assertThatError() - Method in class brave.test.util.AssertableCallback
 
assertThatSuccess() - Method in class brave.test.util.AssertableCallback
 
attachesSpanInCallable() - Method in class brave.test.propagation.CurrentTraceContextTest
 
attachesSpanInCallable_canClear() - Method in class brave.test.propagation.CurrentTraceContextTest
 
attachesSpanInRunnable() - Method in class brave.test.propagation.CurrentTraceContextTest
 

B

B3SingleFormatClassLoaderTest - Class in brave.test.propagation
 
B3SingleFormatClassLoaderTest() - Constructor for class brave.test.propagation.B3SingleFormatClassLoaderTest
 
BAGGAGE_FIELD - Static variable in class brave.test.ITRemote
 
BAGGAGE_FIELD_KEY - Static variable in class brave.test.ITRemote
Sets a propagation key for ITRemote.BAGGAGE_FIELD, which can work with JMS (that prohibits the '-' character).
blockOnGC() - Static method in class brave.test.util.GarbageCollectors
Runs the garbage collector and waits until all of the provided WeakReference are cleared, indicating the referenced objects have been collected.
brave.test - package brave.test
 
brave.test.propagation - package brave.test.propagation
 
brave.test.util - package brave.test.util
 
builderSupplier() - Method in class brave.test.propagation.CurrentTraceContextTest
 

C

checkForLeakedScopes() - Method in class brave.test.ITRemote
Override to disable scope leak enforcement.
ClassLoaders - Class in brave.test.util
 
ClassLoaders() - Constructor for class brave.test.util.ClassLoaders
 
ClassLoaders.ConsumerRunnable<T> - Class in brave.test.util
 
clear() - Method in class brave.test.TestSpanHandler
 
close() - Method in class brave.test.ITRemote
This closes the current instance of tracing, to prevent it from being accidentally visible to other test classes which call Tracing.current().
ConsumerRunnable() - Constructor for class brave.test.util.ClassLoaders.ConsumerRunnable
 
context - Variable in class brave.test.propagation.CurrentTraceContextTest
 
CORRELATION_FIELD - Static variable in class brave.test.propagation.CurrentTraceContextTest
 
currentSpan_defaultsToNull() - Method in class brave.test.propagation.CurrentTraceContextTest
 
currentTraceContext - Variable in class brave.test.ITRemote
 
currentTraceContext - Variable in class brave.test.propagation.CurrentTraceContextTest
 
currentTraceContextBuilder() - Method in class brave.test.ITRemote
Subclass to override the builder.
CurrentTraceContextTest - Class in brave.test.propagation
 
CurrentTraceContextTest() - Constructor for class brave.test.propagation.CurrentTraceContextTest
 

E

end(TraceContext, MutableSpan, SpanHandler.Cause) - Method in class brave.test.IntegrationTestSpanHandler
 
end(TraceContext, MutableSpan, SpanHandler.Cause) - Method in class brave.test.TestSpanHandler
 

G

GarbageCollectors - Class in brave.test.util
Utilities for working with the garbage collector in tests.
get(int) - Method in class brave.test.TestSpanHandler
 
get(Map<String, String>, String) - Method in class brave.test.propagation.PropagationTest.MapEntry
 
globalTimeout - Variable in class brave.test.ITRemote
We use a global rule instead of surefire config as this could be executed in gradle, sbt, etc.

I

ignoreAnySpans() - Method in class brave.test.IntegrationTestSpanHandler
Call this before throwing an AssumptionViolatedException, when there's a chance a span was finished.
ignoresNoopScopeDecorator() - Method in class brave.test.propagation.CurrentTraceContextTest
 
inject(Map<String, String>, SamplingFlags) - Method in class brave.test.propagation.PropagationTest
There's currently no standard API to just inject sampling flags, as IDs are intended to be propagated.
inject(Map<String, String>, String, String, String, Boolean, Boolean) - Method in class brave.test.propagation.PropagationTest
 
IntegrationTestSpanHandler - Class in brave.test
This is a special span reporter for remote integration tests.
IntegrationTestSpanHandler() - Constructor for class brave.test.IntegrationTestSpanHandler
 
is_inheritable(CurrentTraceContext) - Method in class brave.test.propagation.CurrentTraceContextTest
 
isnt_inheritable() - Method in class brave.test.propagation.CurrentTraceContextTest
 
iterator() - Method in class brave.test.TestSpanHandler
 
ITRemote - Class in brave.test
This is the base class for remote integration tests.
ITRemote() - Constructor for class brave.test.ITRemote
 

J

join() - Method in class brave.test.util.AssertableCallback
Returns the value after performing state checks

M

map - Variable in class brave.test.propagation.PropagationTest
 
MapEntry() - Constructor for class brave.test.propagation.PropagationTest.MapEntry
 
maybeScope_canClearScope() - Method in class brave.test.propagation.CurrentTraceContextTest
 
maybeScope_decoratesWithDifferentScope() - Method in class brave.test.propagation.CurrentTraceContextTest
 
maybeScope_doesntDuplicateContext() - Method in class brave.test.propagation.CurrentTraceContextTest
 
maybeScope_doesntDuplicateContext_onNull() - Method in class brave.test.propagation.CurrentTraceContextTest
 
maybeScope_noticesDifferentContext() - Method in class brave.test.propagation.CurrentTraceContextTest
 
maybeScope_noticesDifferentSpanId() - Method in class brave.test.propagation.CurrentTraceContextTest
 
maybeScope_retainsContext() - Method in class brave.test.propagation.CurrentTraceContextTest
 

N

newInstance(Class<T>, ClassLoader) - Static method in class brave.test.util.ClassLoaders
Validating instance creator that ensures the supplier type is static or top-level
newScope_canClearScope() - Method in class brave.test.propagation.CurrentTraceContextTest
 
newScope_decoratesWithDifferentScope() - Method in class brave.test.propagation.CurrentTraceContextTest
 
newScope_noticesDifferentBaggageField() - Method in class brave.test.propagation.CurrentTraceContextTest
 
newScope_noticesDifferentContext() - Method in class brave.test.propagation.CurrentTraceContextTest
 
newScope_noticesDifferentSpanId() - Method in class brave.test.propagation.CurrentTraceContextTest
 
newScope_retainsContext() - Method in class brave.test.propagation.CurrentTraceContextTest
 
newTraceContext(SamplingFlags) - Method in class brave.test.ITRemote
Returns a trace context for use in propagation tests.
notUnloadable_whenScopeLeaked() - Method in class brave.test.propagation.CurrentTraceContextTest
TODO: While it is an instrumentation bug to not close a scope, we should be tolerant.
notYetSampledContext - Variable in class brave.test.propagation.CurrentTraceContextTest
 

O

onError(Throwable) - Method in class brave.test.util.AssertableCallback
Invoked when computation produces a possibly null value successfully.
onSuccess(V) - Method in class brave.test.util.AssertableCallback
Invoked when computation produces its potentially null value successfully.

P

propagation - Variable in class brave.test.propagation.PropagationSetterTest
 
propagation - Variable in class brave.test.propagation.PropagationTest
 
propagationFactory - Variable in class brave.test.ITRemote
 
PropagationSetterTest<R> - Class in brave.test.propagation
 
PropagationSetterTest() - Constructor for class brave.test.propagation.PropagationSetterTest
 
propagationSupplier() - Method in class brave.test.propagation.PropagationTest
 
PropagationTest - Class in brave.test.propagation
 
PropagationTest() - Constructor for class brave.test.propagation.PropagationTest
 
PropagationTest.MapEntry - Class in brave.test.propagation
 
put(Map<String, String>, String, String) - Method in class brave.test.propagation.PropagationTest.MapEntry
 

R

read(R, String) - Method in class brave.test.propagation.PropagationSetterTest
 
request() - Method in class brave.test.propagation.PropagationSetterTest
 
reset() - Method in class brave.test.propagation.PropagationSetterTest
 
restoresSpanAfterCallable() - Method in class brave.test.propagation.CurrentTraceContextTest
 
restoresSpanAfterRunnable() - Method in class brave.test.propagation.CurrentTraceContextTest
 
run() - Method in class brave.test.util.ClassLoaders.ConsumerRunnable
 

S

set() - Method in class brave.test.propagation.PropagationSetterTest
 
set128() - Method in class brave.test.propagation.PropagationSetterTest
 
setListener(Runnable) - Method in class brave.test.util.AssertableCallback
 
setter() - Method in class brave.test.propagation.PropagationSetterTest
 
setTwoKeys() - Method in class brave.test.propagation.PropagationSetterTest
 
spanHandler - Variable in class brave.test.ITRemote
 
spans() - Method in class brave.test.TestSpanHandler
 

T

takeLocalSpan() - Method in class brave.test.IntegrationTestSpanHandler
Blocks until a local span was finished.
takeRemoteSpan(Span.Kind) - Method in class brave.test.IntegrationTestSpanHandler
Blocks until a remote span was finished.
takeRemoteSpanWithError(Span.Kind) - Method in class brave.test.IntegrationTestSpanHandler
Some frameworks swallow exceptions.
takeRemoteSpanWithError(Span.Kind, Throwable) - Method in class brave.test.IntegrationTestSpanHandler
Like takeRemoteSpan(Kind) except a MutableSpan.error() must equal the given value.
takeRemoteSpanWithErrorMessage(Span.Kind, String) - Method in class brave.test.IntegrationTestSpanHandler
Use instead of takeRemoteSpanWithError(Kind, Throwable) when you cannot catch a reference to the actual raised exception during a test.
takeRemoteSpanWithErrorTag(Span.Kind, String) - Method in class brave.test.IntegrationTestSpanHandler
Like takeRemoteSpan(Kind) except an error tag must match the given value.
testName - Variable in class brave.test.ITRemote
 
TestSpanHandler - Class in brave.test
Simpler variant of IntegrationTestSpanHandler appropriate for single-threaded unit-tests.
TestSpanHandler() - Constructor for class brave.test.TestSpanHandler
 
toString() - Method in class brave.test.IntegrationTestSpanHandler
 
toString() - Method in class brave.test.TestSpanHandler
 
tracing - Variable in class brave.test.ITRemote
 
tracingBuilder(Sampler) - Method in class brave.test.ITRemote
 

U

unloadable_afterBasicUsage() - Method in class brave.test.propagation.B3SingleFormatClassLoaderTest
 
unloadable_afterBasicUsage() - Method in class brave.test.propagation.PropagationTest
 
unloadable_afterScopeClose() - Method in class brave.test.propagation.CurrentTraceContextTest
 
unloadable_unused() - Method in class brave.test.propagation.CurrentTraceContextTest
 
unloadable_unused() - Method in class brave.test.propagation.PropagationTest
 
unsampledContext - Variable in class brave.test.propagation.CurrentTraceContextTest
 

V

verifyImplicitContext(TraceContext) - Method in class brave.test.propagation.CurrentTraceContextTest
 
verifyRoundTrip_128BitTrace() - Method in class brave.test.propagation.PropagationTest
 
verifyRoundTrip_childSpan() - Method in class brave.test.propagation.PropagationTest
 
verifyRoundTrip_debug() - Method in class brave.test.propagation.PropagationTest
 
verifyRoundTrip_empty() - Method in class brave.test.propagation.PropagationTest
 
verifyRoundTrip_externallyProvidedIds() - Method in class brave.test.propagation.PropagationTest
When the caller propagates IDs, but not a sampling decision, the current process should decide.
verifyRoundTrip_notSampled() - Method in class brave.test.propagation.PropagationTest
 
verifyRoundTrip_notSampled_noIds() - Method in class brave.test.propagation.PropagationTest
 
verifyRoundTrip_rootSpan() - Method in class brave.test.propagation.PropagationTest
 
verifyRoundTrip_sampledTrueNoOtherTraceHeaders() - Method in class brave.test.propagation.PropagationTest
 
A B C E G I J M N O P R S T U V 
All Classes All Packages