Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SamplingResult

A sampling result contains a decision for a Span and additional attributes the sampler would like to added to the Span.

Hierarchy

  • SamplingResult

Index

Properties

Properties

Optional attributes

attributes: Readonly<Attributes>

The list of attributes returned by SamplingResult MUST be immutable. Caller may call Sampler.shouldSample any number of times and can safely cache the returned value.

decision

A sampling decision, refer to SamplingDecision for details.