Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_SAMPLING_PROBABILITY |
static java.lang.String |
TYPE |
Constructor and Description |
---|
ProbabilisticSampler(double samplingRate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Only implemented to satisfy the sampler interface
|
boolean |
equals(java.lang.Object other) |
SamplingStatus |
sample(java.lang.String operation,
long id)
Uses a trace id to make a sampling decision.
|
public static final double DEFAULT_SAMPLING_PROBABILITY
public static final java.lang.String TYPE
public SamplingStatus sample(java.lang.String operation, long id)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object