pub struct TelemetryFanoutConfig {
pub queue_capacity: NonZeroUsize,
pub terminal_reserve: NonZeroUsize,
pub overflow: TelemetryOverflowPolicy,
pub sink_isolation: TelemetrySinkIsolationPolicy,
}Expand description
Holds telemetry fanout config application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§queue_capacity: NonZeroUsizeQueue capacity used by this record or request.
terminal_reserve: NonZeroUsizeQueue slots reserved for terminal frames. This keeps important terminal events available even when non-terminal frames overflow.
overflow: TelemetryOverflowPolicyOverflow policy applied when a subscriber queue reaches capacity. It decides whether to drop, summarize, backpressure, or fail the subscriber.
sink_isolation: TelemetrySinkIsolationPolicySink isolation used by this record or request.
Implementations§
Source§impl TelemetryFanoutConfig
impl TelemetryFanoutConfig
Sourcepub fn safe_defaults() -> Self
pub fn safe_defaults() -> Self
Returns an updated value with safe defaults configured. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn tiny_for_tests() -> Self
pub fn tiny_for_tests() -> Self
Builds the tiny for tests value. This is data construction and performs no I/O, journal append, event publication, or process work.
Trait Implementations§
Source§impl Clone for TelemetryFanoutConfig
impl Clone for TelemetryFanoutConfig
Source§fn clone(&self) -> TelemetryFanoutConfig
fn clone(&self) -> TelemetryFanoutConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TelemetryFanoutConfig
impl Debug for TelemetryFanoutConfig
Source§impl Default for TelemetryFanoutConfig
impl Default for TelemetryFanoutConfig
Source§impl<'de> Deserialize<'de> for TelemetryFanoutConfig
impl<'de> Deserialize<'de> for TelemetryFanoutConfig
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>,
Source§impl PartialEq for TelemetryFanoutConfig
impl PartialEq for TelemetryFanoutConfig
Source§fn eq(&self, other: &TelemetryFanoutConfig) -> bool
fn eq(&self, other: &TelemetryFanoutConfig) -> bool
self and other values to be equal, and is used by ==.