Skip to main content

datadog_agent_apm/sampling/
mod.rs

1//! Trace sampling settings delivered by the `APM_SAMPLING` Remote Configuration product.
2//!
3//! [`TraceSamplingSubscription`] receives updates from a Remote Configuration client. Each update is a
4//! [`RemoteSampling`] value: either a [`SamplerConfig`] or a marker that none has been accepted yet. A trace sampler
5//! calls [`SamplerConfig::resolve`] with its local [`SamplerSettings`] to get the effective settings for its
6//! environment. This module covers only the settings; applying them to sampler state is up to the consumer.
7
8mod remote_config;
9
10#[cfg(any(test, feature = "test-util"))]
11pub mod test_util;
12
13pub use remote_config::{RemoteSampling, SamplerConfig, SamplerSettings, TraceSamplingSubscription};