pub struct TelemetryConfig {
pub enabled: bool,
pub path: Option<String>,
pub rotate_mib: u32,
pub sample_rate: f32,
pub flush_every_n: usize,
}Fields§
§enabled: boolMaster switch — when false, no sink is opened on the host even
if path is set. Default: false so a fresh install does not
silently start writing files to the user’s $HOME.
path: Option<String>Optional override for the JSONL sink directory. When None, the
host falls back to ~/.devboy/telemetry/.
rotate_mib: u32Soft size cap per JSONL file (MiB). Reserved for future use —
the v1 sink does not rotate yet. Persisted so a later
implementation can pick it up without a config migration; today
the value is read but not acted on. Operators with long-running
sessions should keep enabled = false or rotate externally
(logrotate / find -mtime).
sample_rate: f32Fraction of events to record (1.0 = all).
flush_every_n: usizeFlush the sink every N recorded events.
Trait Implementations§
Source§impl Clone for TelemetryConfig
impl Clone for TelemetryConfig
Source§fn clone(&self) -> TelemetryConfig
fn clone(&self) -> TelemetryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TelemetryConfig
impl Debug for TelemetryConfig
Source§impl Default for TelemetryConfig
impl Default for TelemetryConfig
Source§impl<'de> Deserialize<'de> for TelemetryConfig
impl<'de> Deserialize<'de> for TelemetryConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TelemetryConfig
impl RefUnwindSafe for TelemetryConfig
impl Send for TelemetryConfig
impl Sync for TelemetryConfig
impl Unpin for TelemetryConfig
impl UnsafeUnpin for TelemetryConfig
impl UnwindSafe for TelemetryConfig
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