pub struct ObservatoryConfig {
pub enabled: bool,
pub batch_size: usize,
pub flush_interval_ms: u64,
pub enable_metrics: bool,
pub custom_config: HashMap<String, String>,
}Expand description
Configuration for Observatory integration
Fields§
§enabled: boolEnable event publishing
batch_size: usizeEvent batching size
flush_interval_ms: u64Flush interval in milliseconds
enable_metrics: boolEnable metrics collection
custom_config: HashMap<String, String>Additional configuration (for custom publishers)
Implementations§
Source§impl ObservatoryConfig
impl ObservatoryConfig
Sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Set batch size for event publishing
Sourcepub fn with_flush_interval(self, interval_ms: u64) -> Self
pub fn with_flush_interval(self, interval_ms: u64) -> Self
Set flush interval in milliseconds
Sourcepub fn with_metrics(self, enabled: bool) -> Self
pub fn with_metrics(self, enabled: bool) -> Self
Enable or disable metrics collection
Sourcepub fn with_custom(self, key: String, value: String) -> Self
pub fn with_custom(self, key: String, value: String) -> Self
Add custom configuration parameter
Trait Implementations§
Source§impl Clone for ObservatoryConfig
impl Clone for ObservatoryConfig
Source§fn clone(&self) -> ObservatoryConfig
fn clone(&self) -> ObservatoryConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ObservatoryConfig
impl Debug for ObservatoryConfig
Source§impl Default for ObservatoryConfig
impl Default for ObservatoryConfig
Source§impl<'de> Deserialize<'de> for ObservatoryConfig
impl<'de> Deserialize<'de> for ObservatoryConfig
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 ObservatoryConfig
impl RefUnwindSafe for ObservatoryConfig
impl Send for ObservatoryConfig
impl Sync for ObservatoryConfig
impl Unpin for ObservatoryConfig
impl UnwindSafe for ObservatoryConfig
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