ParentBasedSampler
org.typelevel.otel4s.sdk.trace.samplers.ParentBasedSampler
object ParentBasedSampler
Attributes
- Source
- ParentBasedSampler.scala
- Graph
-
- Supertypes
- Self type
-
ParentBasedSampler.type
Members list
Type members
Classlikes
A builder for creating parent-based sampler.
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
Creates a Builder for the parent-based sampler that enables configuration of the parent-based sampling strategy.
Creates a Builder for the parent-based sampler that enables configuration of the parent-based sampling strategy.
The parent's sampling decision is used if a parent span exists, otherwise this strategy uses the root sampler's decision.
There are a several options available on the builder to control the precise behavior of how the decision will be made.
Value parameters
- root
-
the Sampler which is used to make the sampling decisions if the parent does not exist
Attributes
- Source
- ParentBasedSampler.scala
In this article