Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.01 KB

File metadata and controls

24 lines (17 loc) · 1.01 KB

pkg/sampling

Overview

This package contains utilities for parsing and interpreting the W3C TraceState and all sampling-relevant fields specified by OpenTelemetry that may be found in the OpenTelemetry section of the W3C TraceState.

See the associated OpenTelemetry specifications:

This package supports sampler components that apply sampling on the collection path through reading and writing the OpenTelemetry (ot) TraceState sub-keys:

  • th: the Threshold used to determine whether a TraceID is sampled
  • rv: an explicit randomness value, which overrides randomness in the TraceID

See probabilisticsamplerprocessor for an example application.