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>,
pub protocol: OtelProtocol,
pub additional_ca_paths: Vec<PathBuf>,
pub trace_level: Level,
}
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.
protocol: OtelProtocol
Determines whether http or grpc will be used for exporting the telemetry.
additional_ca_paths: Vec<PathBuf>
Additional CAs to include in the OpenTelemetry client configuration
trace_level: Level
The level of tracing to enable.
Implementations§
source§impl OtelConfig
impl OtelConfig
pub fn logs_endpoint(&self) -> String
pub fn metrics_endpoint(&self) -> String
pub fn traces_endpoint(&self) -> String
pub fn logs_enabled(&self) -> bool
pub fn metrics_enabled(&self) -> bool
pub fn traces_enabled(&self) -> bool
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)