cja/observability/mod.rs
1//! Declare metrics, dashboard sections and thresholds once per application.
2//!
3//! Attach the declarations to an Eyes boot manifest at startup. A separate CI
4//! binary calls [`posthog::sync`] to reconcile product-event trends, dashboard
5//! tiles and alert bounds. Telemetry and ratio metrics use SQL insights;
6//! health items show a recent-error substitute. SQL alerts remain unsupported
7//! until their evaluation and NULL behavior are verified. Declaration ids must be lowercase.
8//! See the repository guide at `docs/posthog-sync.md` for the mapping matrix,
9//! required credentials, and reusable workflow.
10
11pub mod declarations;
12pub mod posthog;
13pub use declarations::*;
14pub use eyes_subscriber::{AggregateFunction, MetricResultShape, MetricValueType};