Class ComposableRuleBasedSamplerBuilder
java.lang.Object
io.opentelemetry.sdk.extension.incubator.trace.samplers.ComposableRuleBasedSamplerBuilder
A builder for a composable rule-based sampler.
-
Method Summary
Modifier and TypeMethodDescriptionadd(SamplingPredicate predicate, ComposableSampler sampler) Adds a rule to use the givenComposableSamplerif theSamplingPredicatematches.build()Returns aComposableSamplerwith the rules in this builder.
-
Method Details
-
add
public ComposableRuleBasedSamplerBuilder add(SamplingPredicate predicate, ComposableSampler sampler) Adds a rule to use the givenComposableSamplerif theSamplingPredicatematches. -
build
Returns aComposableSamplerwith the rules in this builder.
-