pub struct ExportConfig {
pub target: ExportTarget,
pub endpoint: Option<String>,
pub batch_size: usize,
pub interval: Duration,
}Expand description
Export configuration for traces and metrics.
Fields§
§target: ExportTargetExport target type.
endpoint: Option<String>OTLP endpoint URL (for OTLP targets).
batch_size: usizeBatch size for export. Default: 512.
interval: DurationExport interval. Default: 5 seconds.
Trait Implementations§
Source§impl Clone for ExportConfig
impl Clone for ExportConfig
Source§impl Debug for ExportConfig
impl Debug for ExportConfig
Source§impl Default for ExportConfig
impl Default for ExportConfig
Source§impl<'de> Deserialize<'de> for ExportConfig
impl<'de> Deserialize<'de> for ExportConfig
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 Forget for ExportConfig
impl Freeze for ExportConfig
impl Move for ExportConfig
impl RefUnwindSafe for ExportConfig
impl Send for ExportConfig
impl Sync for ExportConfig
impl Unpin for ExportConfig
impl UnsafeUnpin for ExportConfig
impl UnwindSafe for ExportConfig
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