@Override
    public boolean isSampled(final ServerWebExchange exchange, final SelectorData selectorData) {
        return sampleDecisions.get(mod(counter.getAndIncrement()));
    }
loops over the pre-canned decisions, resetting to zero when it gets to the end.
shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/sampler/CountSampler.java