| 构造器和说明 |
|---|
SofaTracerPercentageBasedSampler(SamplerProperties configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Release any resources used by the sampler.
|
String |
getType() |
static BitSet |
randomBitSet(int size,
int cardinality,
Random rnd)
Reservoir sampling algorithm borrowed from Stack Overflow.
|
SamplingStatus |
sample(String operation,
String traceId) |
public SofaTracerPercentageBasedSampler(SamplerProperties configuration)
public SamplingStatus sample(String operation, String traceId)
public void close()
SamplerCopyright © 2018 Pivotal Software, Inc.. All rights reserved.