pub struct EnvSettingsView { /* private fields */ }Expand description
Snapshot of OTEL-relevant env vars usable as a SettingsView.
Lets crates that don’t depend on cognee-lib::Settings (e.g. the HTTP
server) drive crate::init_telemetry directly from the environment.
Implementations§
Trait Implementations§
Source§impl Clone for EnvSettingsView
impl Clone for EnvSettingsView
Source§fn clone(&self) -> EnvSettingsView
fn clone(&self) -> EnvSettingsView
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 EnvSettingsView
impl Debug for EnvSettingsView
Source§impl Default for EnvSettingsView
impl Default for EnvSettingsView
Source§impl SettingsView for EnvSettingsView
impl SettingsView for EnvSettingsView
Source§fn tracing_enabled(&self) -> bool
fn tracing_enabled(&self) -> bool
Mirrors
Settings.cognee_tracing_enabled.Source§fn service_name(&self) -> &str
fn service_name(&self) -> &str
Mirrors
Settings.otel_service_name.Source§fn otlp_endpoint(&self) -> &str
fn otlp_endpoint(&self) -> &str
Mirrors
Settings.otel_exporter_otlp_endpoint.Source§fn otlp_headers(&self) -> &str
fn otlp_headers(&self) -> &str
Mirrors
Settings.otel_exporter_otlp_headers.Source§fn otlp_protocol(&self) -> &str
fn otlp_protocol(&self) -> &str
Mirrors
Settings.otel_exporter_otlp_protocol.Source§fn span_processor(&self) -> &str
fn span_processor(&self) -> &str
Mirrors
Settings.otel_span_processor.Source§fn traces_sampler(&self) -> &str
fn traces_sampler(&self) -> &str
Mirrors
Settings.otel_traces_sampler.Source§fn traces_sampler_arg(&self) -> &str
fn traces_sampler_arg(&self) -> &str
Mirrors
Settings.otel_traces_sampler_arg.Auto Trait Implementations§
impl Freeze for EnvSettingsView
impl RefUnwindSafe for EnvSettingsView
impl Send for EnvSettingsView
impl Sync for EnvSettingsView
impl Unpin for EnvSettingsView
impl UnsafeUnpin for EnvSettingsView
impl UnwindSafe for EnvSettingsView
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