ParentBasedSampler

org.typelevel.otel4s.sdk.trace.samplers.ParentBasedSampler

Attributes

Source
ParentBasedSampler.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

sealed trait Builder

A builder for creating parent-based sampler.

A builder for creating parent-based sampler.

Attributes

Source
ParentBasedSampler.scala
Supertypes
class Object
trait Matchable
class Any

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def builder(root: Sampler): Builder

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