pub trait SettingsView: Send + Sync {
// Required methods
fn tracing_enabled(&self) -> bool;
fn service_name(&self) -> &str;
fn otlp_endpoint(&self) -> &str;
fn otlp_headers(&self) -> &str;
fn otlp_protocol(&self) -> &str;
fn span_processor(&self) -> &str;
fn traces_sampler(&self) -> &str;
fn traces_sampler_arg(&self) -> &str;
}Expand description
Borrow-only adapter over the OTEL fields of cognee Settings.
All accessors return &str / bool so implementations can avoid
cloning. Send + Sync so the trait object can travel across async
task boundaries.
Required Methods§
Sourcefn tracing_enabled(&self) -> bool
fn tracing_enabled(&self) -> bool
Mirrors Settings.cognee_tracing_enabled.
Sourcefn service_name(&self) -> &str
fn service_name(&self) -> &str
Mirrors Settings.otel_service_name.
Sourcefn otlp_endpoint(&self) -> &str
fn otlp_endpoint(&self) -> &str
Mirrors Settings.otel_exporter_otlp_endpoint.
Sourcefn otlp_headers(&self) -> &str
fn otlp_headers(&self) -> &str
Mirrors Settings.otel_exporter_otlp_headers.
Sourcefn otlp_protocol(&self) -> &str
fn otlp_protocol(&self) -> &str
Mirrors Settings.otel_exporter_otlp_protocol.
Sourcefn span_processor(&self) -> &str
fn span_processor(&self) -> &str
Mirrors Settings.otel_span_processor.
Sourcefn traces_sampler(&self) -> &str
fn traces_sampler(&self) -> &str
Mirrors Settings.otel_traces_sampler.
Sourcefn traces_sampler_arg(&self) -> &str
fn traces_sampler_arg(&self) -> &str
Mirrors Settings.otel_traces_sampler_arg.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl SettingsView for EnvSettingsView
impl SettingsView for Settings
Available on crate feature
telemetry only.