public interface Sampler
| Modifier and Type | Method and Description |
|---|---|
float |
calculatePriority(Transaction tx,
Granularity granularity)
Calculate the priority of a trace.
|
java.lang.String |
getDescription()
Human-readable description of this sampler's name and important qualities.
|
SamplerType |
getType()
Get the type of this Sampler
|
static boolean |
isValidSamplingTarget(int target)
Determine if the supplied int value is a valid value for the adaptive sampling target
|
static boolean |
isValidTraceRatio(float ratio)
Determine if the supplied float value is a valid value for the ratio value
|
static java.lang.String |
traceIdFromTransaction(Transaction tx)
Extract the trace id from the supplied Transaction instance
|
static java.lang.String traceIdFromTransaction(Transaction tx)
tx - The target Transactionstatic boolean isValidTraceRatio(float ratio)
ratio - the ratio value to checkstatic boolean isValidSamplingTarget(int target)
target - the target value to checkfloat calculatePriority(Transaction tx, Granularity granularity)
tx - the transaction to calculate the priority forSamplerType getType()
java.lang.String getDescription()