View Source SamplingContext (Sentry v11.0.0)
The struct for the sampling_context that is passed to traces_sampler
.
This is set up via Sentry.OpenTelemetry.Sampler
.
See also https://develop.sentry.dev/sdk/telemetry/traces/#sampling-context.
Summary
Types
@type t() :: %SamplingContext{ parent_sampled: boolean() | nil, transaction_context: %{ name: String.t() | nil, op: String.t(), trace_id: String.t(), attributes: map() } }
The sampling context struct that contains information needed for sampling decisions.
This matches the structure used in the Python SDK's create_sampling_context function.