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 class
PropagationTest.MapEntry
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>
map
protected Propagation<String>
propagation
-
Constructor Summary
Constructors Modifier Constructor Description protected
PropagationTest()
-
Method Summary
Modifier and Type Method Description 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.protected abstract void
inject(Map<String,String> map, String traceId, String parentId, String spanId, Boolean sampled, Boolean debug)
protected abstract Class<? extends Supplier<Propagation<String>>>
propagationSupplier()
void
unloadable_afterBasicUsage()
void
unloadable_unused()
void
verifyRoundTrip_128BitTrace()
void
verifyRoundTrip_childSpan()
void
verifyRoundTrip_debug()
void
verifyRoundTrip_empty()
void
verifyRoundTrip_externallyProvidedIds()
When the caller propagates IDs, but not a sampling decision, the current process should decide.void
verifyRoundTrip_notSampled()
void
verifyRoundTrip_notSampled_noIds()
void
verifyRoundTrip_rootSpan()
void
verifyRoundTrip_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()
-