SamplingResult

org.typelevel.otel4s.sdk.trace.samplers.SamplingResult
See theSamplingResult companion trait

Attributes

Companion
trait
Source
SamplingResult.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

Attributes

Companion
trait
Source
SamplingResult.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait TraceStateUpdater

A modifier of the parent's TraceState.

A modifier of the parent's TraceState.

It may return the same trace state that was provided originally, or an updated one.

Attributes

Note

if an empty trace state is returned, the trace state will be cleared, so the updater should normally return the passed-in trace state (via TraceStateUpdater.Identity) if it's intended to be changed.

Companion
object
Source
SamplingResult.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Const
object Identity
class Modifier

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

Creates a SamplingResult with the given decision.

Creates a SamplingResult with the given decision.

Value parameters

decision

the SamplingDecision to associate with the result

Attributes

Source
SamplingResult.scala
def apply(decision: SamplingDecision, attributes: Attributes): SamplingResult

Creates a SamplingResult with the given decision and attributes.

Creates a SamplingResult with the given decision and attributes.

Value parameters

attributes

the Attributes to associate with the result

decision

the SamplingDecision to associate with the result

Attributes

Source
SamplingResult.scala
def apply(decision: SamplingDecision, attributes: Attributes, traceStateUpdater: TraceStateUpdater): SamplingResult

Creates a SamplingResult with the given decision, attributes, and traceStateUpdater.

Creates a SamplingResult with the given decision, attributes, and traceStateUpdater.

Value parameters

attributes

the Attributes to associate with the result

decision

the SamplingDecision to associate with the result

traceStateUpdater

the TraceStateUpdater to associate with the result

Attributes

Source
SamplingResult.scala

Concrete fields

The SamplingResult with the SamplingDecision.Drop decision, no attributes, and TraceStateUpdater.Identity updater.

The SamplingResult with the SamplingDecision.Drop decision, no attributes, and TraceStateUpdater.Identity updater.

Attributes

Source
SamplingResult.scala

The SamplingResult with the SamplingDecision.RecordAndSample decision, no attributes, and TraceStateUpdater.Identity updater.

The SamplingResult with the SamplingDecision.RecordAndSample decision, no attributes, and TraceStateUpdater.Identity updater.

Attributes

Source
SamplingResult.scala

The SamplingResult with the SamplingDecision.RecordOnly decision, no attributes, and TraceStateUpdater.Identity updater.

The SamplingResult with the SamplingDecision.RecordOnly decision, no attributes, and TraceStateUpdater.Identity updater.

Attributes

Source
SamplingResult.scala

Implicits

Implicits

Attributes

Source
SamplingResult.scala

Attributes

Source
SamplingResult.scala