ella-engine 0.1.5

Core engine implementation for the ella datastore.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod load_monitor;
#[cfg(feature = "metrics")]
mod server;

pub use load_monitor::{InstrumentedBuffer, LoadLabels, MonitorLoadExt, ReportLoad};
#[cfg(feature = "metrics")]
pub use server::MetricsServer;

use once_cell::sync::Lazy;
use std::sync::Mutex;

#[cfg(feature = "metrics")]
pub(crate) static METRICS: Lazy<Mutex<prometheus_client::registry::Registry>> =
    Lazy::new(|| Mutex::new(prometheus_client::registry::Registry::default()));