reifydb_sub_metric/lib.rs
1// SPDX-License-Identifier: AGPL-3.0-or-later
2// Copyright (c) 2026 ReifyDB
3
4//! Metric collection subsystem: watches the engine's metric registry, samples it on a cadence, and delivers
5//! snapshots to whatever sink the deployment has configured (an in-process listener, a periodic logger, an external
6//! exporter via the OTel subsystem). Interceptors hook into individual metric updates so a sink can react to events
7//! rather than poll.
8//!
9//! The crate produces no metrics of its own; the engine's `metric/` crate is the source. This subsystem only owns
10//! the delivery path. New sinks plug in as listeners; new metric kinds belong in `metric/`.
11
12#![cfg_attr(not(debug_assertions), deny(clippy::disallowed_methods))]
13#![cfg_attr(debug_assertions, warn(clippy::disallowed_methods))]
14#![cfg_attr(not(debug_assertions), deny(warnings))]
15#![allow(clippy::tabs_in_doc_comments)]
16
17pub mod actor;
18pub mod factory;
19pub mod interceptor;
20pub mod listener;
21pub mod profiler_gauges;
22pub mod profiler_vtable;
23pub mod subsystem;