pub struct TelemetryConfig {
pub default_filter: String,
pub format: Format,
pub log_span_events: bool,
pub to_stderr: bool,
}Fields§
§default_filter: StringFallback filter when RUST_LOG is unset, e.g. "info,origin_sync=debug".
format: Format§log_span_events: boolLog span open/close, which makes sync and job timings visible.
to_stderr: boolWrite to stderr instead of stdout.
Mandatory when the process speaks a protocol on stdout — an MCP server over stdio, for instance. A single log line on stdout corrupts the stream, and the client reports a parse error rather than anything that points at logging.
Implementations§
Source§impl TelemetryConfig
impl TelemetryConfig
Sourcepub fn for_stdout_protocol() -> Self
pub fn for_stdout_protocol() -> Self
Configuration for a process that speaks a protocol on stdout.
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
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