Skip to main content

boson_telemetry/
noop.rs

1use super::OpsLog;
2
3/// Zero-cost no-op (benchmark `telemetry=off` and minimal CI).
4#[derive(Debug, Default, Clone, Copy)]
5pub struct NoOpsLog;
6
7impl OpsLog for NoOpsLog {
8    fn record_counter(&self, _name: &str, _labels: &[(&str, &str)], _value: f64) {}
9
10    fn record_gauge(&self, _name: &str, _labels: &[(&str, &str)], _value: f64) {}
11
12    fn log_event(&self, _name: &str, _payload: &serde_json::Value) {}
13}