Struct wasmcloud_core::otel::OtelConfig
source · pub struct OtelConfig {
pub enable_observability: bool,
pub enable_traces: Option<bool>,
pub enable_metrics: Option<bool>,
pub enable_logs: Option<bool>,
pub observability_endpoint: Option<String>,
pub traces_endpoint: Option<String>,
pub metrics_endpoint: Option<String>,
pub logs_endpoint: Option<String>,
}
Expand description
Configuration values for OpenTelemetry
Fields§
§enable_observability: bool
Determine whether observability should be enabled.
enable_traces: Option<bool>
Determine whether traces should be enabled.
enable_metrics: Option<bool>
Determine whether metrics should be enabled.
enable_logs: Option<bool>
Determine whether logs should be enabled.
observability_endpoint: Option<String>
Overrides the OpenTelemetry endpoint for all signals.
traces_endpoint: Option<String>
Overrides the OpenTelemetry endpoint for traces.
metrics_endpoint: Option<String>
Overrides the OpenTelemetry endpoint for metrics.
logs_endpoint: Option<String>
Overrides the OpenTelemetry endpoint for logs.
Trait Implementations§
source§impl Clone for OtelConfig
impl Clone for OtelConfig
source§fn clone(&self) -> OtelConfig
fn clone(&self) -> OtelConfig
Returns a copy 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 OtelConfig
impl Debug for OtelConfig
source§impl Default for OtelConfig
impl Default for OtelConfig
source§fn default() -> OtelConfig
fn default() -> OtelConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OtelConfig
impl<'de> Deserialize<'de> for OtelConfig
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 OtelConfig
impl RefUnwindSafe for OtelConfig
impl Send for OtelConfig
impl Sync for OtelConfig
impl Unpin for OtelConfig
impl UnwindSafe for OtelConfig
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