Package brave.test.propagation
Class PropagationTest
java.lang.Object
brave.test.propagation.PropagationTest
public abstract class PropagationTest extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classPropagationTest.MapEntry -
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>mapprotected Propagation<String>propagation -
Constructor Summary
Constructors Modifier Constructor Description protectedPropagationTest() -
Method Summary
Modifier and Type Method Description protected abstract voidinject(Map<String,String> request, SamplingFlags samplingFlags)There's currently no standard API to just inject sampling flags, as IDs are intended to be propagated.protected abstract voidinject(Map<String,String> map, String traceId, String parentId, String spanId, Boolean sampled, Boolean debug)protected abstract Class<? extends Supplier<Propagation<String>>>propagationSupplier()voidunloadable_afterBasicUsage()voidunloadable_unused()voidverifyRoundTrip_128BitTrace()voidverifyRoundTrip_childSpan()voidverifyRoundTrip_debug()voidverifyRoundTrip_empty()voidverifyRoundTrip_externallyProvidedIds()When the caller propagates IDs, but not a sampling decision, the current process should decide.voidverifyRoundTrip_notSampled()voidverifyRoundTrip_notSampled_noIds()voidverifyRoundTrip_rootSpan()voidverifyRoundTrip_sampledTrueNoOtherTraceHeaders()
-
Field Details
-
Constructor Details
-
PropagationTest
protected PropagationTest()
-
-
Method Details
-
propagationSupplier
-
inject
-
inject
There's currently no standard API to just inject sampling flags, as IDs are intended to be propagated. -
verifyRoundTrip_rootSpan
- Throws:
Exception
-
verifyRoundTrip_128BitTrace
- Throws:
Exception
-
verifyRoundTrip_childSpan
- Throws:
Exception
-
verifyRoundTrip_notSampled
- Throws:
Exception
-
verifyRoundTrip_notSampled_noIds
- Throws:
Exception
-
verifyRoundTrip_sampledTrueNoOtherTraceHeaders
public void verifyRoundTrip_sampledTrueNoOtherTraceHeaders() -
verifyRoundTrip_debug
public void verifyRoundTrip_debug() -
verifyRoundTrip_empty
- Throws:
Exception
-
verifyRoundTrip_externallyProvidedIds
public void verifyRoundTrip_externallyProvidedIds()When the caller propagates IDs, but not a sampling decision, the current process should decide. -
unloadable_unused
public void unloadable_unused() -
unloadable_afterBasicUsage
public void unloadable_afterBasicUsage()
-