@luna-oss/telemetry
v5.0.0
Published
Opt-in OpenTelemetry + web-vitals adapter for the Moon Design System.
Readme
@luna-oss/telemetry
Opt-in OpenTelemetry + web-vitals adapter for the Moon Design System.
Posture
Telemetry is off by default. Consumers explicitly opt in by mounting
<TelemetryProvider enabled /> and supplying their own sink.
Exports
TelemetryProvider— host that wires the telemetry pipeline.useMoonTelemetry— hook that returns{ enabled, emit }for components.
Web Vitals
When enabled, the provider lazy-loads web-vitals and forwards CLS, INP,
LCP, FCP, and TTFB through the same onEvent sink so consumers do not need a
second integration.
Status
Phase 1 ships the wiring and a typed event shape. The OpenTelemetry exporter is plugged in Phase 2 once the canonical Moon attributes settle.
