Skip to main content

DbTelemetry

Trait DbTelemetry 

Source
pub trait DbTelemetry:
    Send
    + Sync
    + 'static {
    // Required methods
    fn counter(&self, name: &str, inc: i64, tags: &[(&str, &str)]);
    fn record_duration(
        &self,
        name: &str,
        duration: Duration,
        tags: &[(&str, &str)],
    );
}
Expand description

Low-cardinality sink for SQLite startup and fallback telemetry.

Implementations should absorb delivery failures locally. Database behavior must not depend on whether telemetry export succeeds.

Required Methods§

Source

fn counter(&self, name: &str, inc: i64, tags: &[(&str, &str)])

Source

fn record_duration(&self, name: &str, duration: Duration, tags: &[(&str, &str)])

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§