public interface Sampler
| Modifier and Type | Method and Description |
|---|---|
float |
calculatePriority(Transaction tx)
Calculate the priority of a trace.
|
java.lang.String |
getType()
Get the description/name of this Sampler
|
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 ration value to checkfloat calculatePriority(Transaction tx)
tx - the transaction to calculate the priority forjava.lang.String getType()