metrale_telemetry/export/
mod.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2
3//! 2026-09-26: Exporters. Each renders a [`crate::snapshot::TelemetrySnapshot`]
4//! or the instruments behind it into a `String`; the server does the I/O.
5//!
6//! * [`prometheus`]: the telemetry section of `GET /metrics`.
7//! * [`events`]: one JSON object per line for `GET /v1/events` (SSE).
8//! * `otlp` (cargo feature `otlp`): an OTLP/HTTP JSON metrics body.
9//!
10//! Owner: telemetry.
11//! Invariants: no exporter performs I/O.
12
13pub mod events;
14#[cfg(feature = "otlp")]
15pub mod otlp;
16pub mod prometheus;
17mod prometheus_layers;
18mod prometheus_text;