Skip to main content

saluki_components/sources/dogstatsd/replay/
mod.rs

1//! DogStatsD capture and replay support.
2//!
3//! This module contains the capture lifecycle, writer, capture file reader, and file header helpers used by the ADP
4//! DogStatsD capture and replay APIs.
5
6mod capture;
7mod capture_api;
8mod captured_tagger;
9mod file_header;
10mod reader;
11mod replay_api;
12mod replay_control;
13pub(super) mod writer;
14
15pub use self::capture::DogStatsDCaptureControl;
16pub(crate) use self::capture::TrafficCapture;
17pub use self::capture_api::DogStatsDCaptureAPIHandler;
18pub(crate) use self::captured_tagger::{CapturedTaggerHandle, CapturedTaggerStore};
19pub use self::reader::{TimestampResolution, TrafficCaptureReader};
20pub use self::replay_api::DogStatsDReplayAPIHandler;
21pub use self::replay_control::{DogStatsDReplayControl, ReplaySession, DEFAULT_REPLAY_LOOPS};
22pub(crate) use self::writer::CaptureRecord;
23
24/// GID stamped onto replay-injected DogStatsD packets via `SCM_CREDENTIALS`.
25///
26/// The replay sender stamps this value as the `gid` field of the ancillary credentials block and packs the original
27/// captured PID into the `uid` field. The DogStatsD UDS listener uses this GID as the signal to recover the original
28/// PID from `uid` and route origin resolution against the captured tagger state instead of the live workload provider.
29pub const REPLAY_CREDENTIALS_GID: u32 = 999_888_777;