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
All Methods Instance Methods Abstract Methods Concrete Methods 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 Detail
-
propagation
protected final Propagation<String> propagation
-
-
Method Detail
-
propagationSupplier
protected abstract Class<? extends Supplier<Propagation<String>>> propagationSupplier()
-
inject
protected abstract void inject(Map<String,String> map, @Nullable String traceId, @Nullable String parentId, @Nullable String spanId, @Nullable Boolean sampled, @Nullable Boolean debug)
-
inject
protected abstract void inject(Map<String,String> request, SamplingFlags samplingFlags)
There's currently no standard API to just inject sampling flags, as IDs are intended to be propagated.
-
verifyRoundTrip_128BitTrace
public void verifyRoundTrip_128BitTrace() throws Exception- Throws:
Exception
-
verifyRoundTrip_childSpan
public void verifyRoundTrip_childSpan() throws Exception- Throws:
Exception
-
verifyRoundTrip_notSampled
public void verifyRoundTrip_notSampled() throws Exception- Throws:
Exception
-
verifyRoundTrip_notSampled_noIds
public void verifyRoundTrip_notSampled_noIds() throws Exception- Throws:
Exception
-
verifyRoundTrip_sampledTrueNoOtherTraceHeaders
public void verifyRoundTrip_sampledTrueNoOtherTraceHeaders()
-
verifyRoundTrip_debug
public void verifyRoundTrip_debug()
-
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()
-
-