pub struct ObservabilityConfig {
pub enabled: bool,
pub endpoint: String,
pub protocol: OtelProtocol,
pub service_name: String,
pub service_version: String,
pub sampling_ratio: f64,
pub timeout: Duration,
pub verify_presence_oracle: bool,
}Expand description
Runtime observability configuration.
Construct via ObservabilityConfig::from_env for the standard
CQLITE_OTEL_* behaviour, or ObservabilityConfig::builder to set fields
programmatically (e.g. in tests that want a disabled / no-export config).
Fields§
§enabled: boolMaster enable switch. When false, init returns an inert guard and
installs no exporters or global providers, regardless of the feature.
endpoint: StringOTLP endpoint (gRPC endpoint or HTTP base URL).
protocol: OtelProtocolWire protocol.
service_name: Stringservice.name resource attribute.
service_version: Stringservice.version resource attribute.
sampling_ratio: f64Trace-ID-ratio sampling probability in [0.0, 1.0]. Wrapped in a
parent-based sampler so children of a sampled span are always recorded.
timeout: DurationExporter export timeout.
verify_presence_oracle: boolOpt-in, default-OFF presence-oracle false-negative verification (issue
#2163). When true, an SSTable read whose bloom/BTI-trie reports a key
“definitely absent” runs an AUTHORITATIVE confirmation scan and increments
cqlite.read.bloom.false_negatives on a contradiction. Populated from
CQLITE_VERIFY_PRESENCE_ORACLE; the read path itself consults the
process-global switch in
crate::storage::sstable::reader::presence_verification, which reads the
SAME environment variable, so this field mirrors that runtime state.
Implementations§
Source§impl ObservabilityConfig
impl ObservabilityConfig
Sourcepub fn builder() -> ObservabilityConfigBuilder
pub fn builder() -> ObservabilityConfigBuilder
Start from defaults and override fields fluently.
Trait Implementations§
Source§impl Clone for ObservabilityConfig
impl Clone for ObservabilityConfig
Source§fn clone(&self) -> ObservabilityConfig
fn clone(&self) -> ObservabilityConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more