SofaTracerPercentageBasedSampler implements Sampler { @Override public String getType() { return TYPE; } SofaTracerPercentageBasedSampler(SamplerProperties configuration); @Override SamplingStatus sample(SofaTracerSpan sofaTracerSpan); @Override String getType(); @Override void close(); static BitSet randomBitSet(int size, int cardinality, Random rnd); static final String TYPE; }
@Test public void getType() { Assert.assertTrue(sofaTracerPercentageBasedSampler.getType().equals( "PercentageBasedSampler")); }