Skip to main content

SettingsView

Trait SettingsView 

Source
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§

Source

fn tracing_enabled(&self) -> bool

Mirrors Settings.cognee_tracing_enabled.

Source

fn service_name(&self) -> &str

Mirrors Settings.otel_service_name.

Source

fn otlp_endpoint(&self) -> &str

Mirrors Settings.otel_exporter_otlp_endpoint.

Source

fn otlp_headers(&self) -> &str

Mirrors Settings.otel_exporter_otlp_headers.

Source

fn otlp_protocol(&self) -> &str

Mirrors Settings.otel_exporter_otlp_protocol.

Source

fn span_processor(&self) -> &str

Mirrors Settings.otel_span_processor.

Source

fn traces_sampler(&self) -> &str

Mirrors Settings.otel_traces_sampler.

Source

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§