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
All Methods Instance Methods Abstract Methods Concrete Methods 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 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()
-
-