pub enum ExporterConfig {
None,
File {
enabled: bool,
path: Option<String>,
},
Dev {
enabled: bool,
},
PostHog {
enabled: bool,
host: Option<String>,
project_api_key: Option<String>,
},
Datadog {
enabled: bool,
site: Option<String>,
api_key: Option<String>,
},
Otlp {
enabled: bool,
endpoint: Option<String>,
},
}Expand description
One pluggable sink; TOML type is the tag.
Variants§
None
No-op row for sparse tables / templates.
File
Append summary JSON lines to a local NDJSON file (default <workspace>/.kaizen/telemetry.ndjson).
Dev
Echo to tracing (for wiring tests; requires the telemetry-dev build feature).
PostHog
Fields
Datadog
Fields
Otlp
Implementations§
Source§impl ExporterConfig
impl ExporterConfig
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Whether this row should be considered for load_exporters (excludes None).
Trait Implementations§
Source§impl Clone for ExporterConfig
impl Clone for ExporterConfig
Source§fn clone(&self) -> ExporterConfig
fn clone(&self) -> ExporterConfig
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 ExporterConfig
impl Debug for ExporterConfig
Source§impl<'de> Deserialize<'de> for ExporterConfig
impl<'de> Deserialize<'de> for ExporterConfig
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 ExporterConfig
impl RefUnwindSafe for ExporterConfig
impl Send for ExporterConfig
impl Sync for ExporterConfig
impl Unpin for ExporterConfig
impl UnsafeUnpin for ExporterConfig
impl UnwindSafe for ExporterConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more