Expand description
Declare metrics, dashboard sections and thresholds once per application.
Attach the declarations to an Eyes boot manifest at startup. A separate CI
binary calls posthog::sync to reconcile product-event trends, dashboard
tiles and alert bounds. Telemetry and ratio metrics use SQL insights;
health items show a recent-error substitute. SQL alerts remain unsupported
until their evaluation and NULL behavior are verified. Declaration ids must be lowercase.
See the repository guide at docs/posthog-sync.md for the mapping matrix,
required credentials, and reusable workflow.
Re-exports§
pub use declarations::*;
Modules§
- declarations
- App-owned declarations shared by both observability sinks.
- posthog
- Reconcile one application’s declarations against the
PostHogproject API.
Enums§
- Aggregate
Function - Metric
Result Shape - What executing this metric returns. Derived from the IR by the builder; validated against the IR by the server.
- Metric
Value Type - The value domain of the metric’s single
valuecolumn.durationis a first-class domain because the executor preserves it through every aggregate:p95(duration)returns Duration cells, and no duration→float cast exists in the engine.