pub struct DatadogConfig { /* private fields */ }Expand description
Agent-facing config. hostname, api_key, dd_url, and the socket are
supplied by the environment; log_level and the DogStatsD options are
sampled per branch. The static flags are appended by Self::to_yaml, not
fields here.
Implementations§
Source§impl DatadogConfig
impl DatadogConfig
Sourcepub fn sample<R: Rng + ?Sized>(
rng: &mut R,
hostname: &str,
api_key: &str,
dd_url: &str,
dogstatsd_socket: &Path,
profile: ConfigProfile,
) -> Self
pub fn sample<R: Rng + ?Sized>( rng: &mut R, hostname: &str, api_key: &str, dd_url: &str, dogstatsd_socket: &Path, profile: ConfigProfile, ) -> Self
Generate a config for profile: the environmental fields come from the
caller, the rest are sampled from rng. With an Antithesis-backed rng,
each call after the snapshot yields an independent draw per replay branch.
Trait Implementations§
Source§impl Debug for DatadogConfig
impl Debug for DatadogConfig
Auto Trait Implementations§
impl Freeze for DatadogConfig
impl RefUnwindSafe for DatadogConfig
impl Send for DatadogConfig
impl Sync for DatadogConfig
impl Unpin for DatadogConfig
impl UnsafeUnpin for DatadogConfig
impl UnwindSafe for DatadogConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more