P
- The type that encloses parameters associated with a sample rate. For example, this
could be a pair of http and method..public final class ParameterizedSampler<P> extends Object
This looks at runtime parameters to see if they match
a rule. If
all calls to a java method should have the same sample rate, consider DeclarativeSampler
instead.
Modifier and Type | Class and Description |
---|---|
static class |
ParameterizedSampler.Rule<P> |
Modifier and Type | Method and Description |
---|---|
static <P> ParameterizedSampler<P> |
create(List<? extends ParameterizedSampler.Rule<P>> rules) |
SamplingFlags |
sample(P parameters) |
public static final <P> ParameterizedSampler<P> create(List<? extends ParameterizedSampler.Rule<P>> rules)
public SamplingFlags sample(@Nullable P parameters)
Copyright © 2017 OpenZipkin. All rights reserved.