telemetry-essentials
Installation
SKILL.md
Telemetry Essentials
Use this skill before writing ANY telemetry, logging, or metrics code.
RULES — Follow these with no exceptions
- Use structured logging (
Logger.info("action", key: value)) — never string interpolation in log messages - Attach telemetry handlers in
Application.start/2— not in modules that may restart, and never in GenServerinit - Use
Ecto.Repotelemetry events for query monitoring — Ecto already emits events; don't manually instrument queries - Use
Phoenix.LiveDashboardin dev/staging — free observability with zero code - Tag telemetry events with metadata (user_id, request_id) — without correlation IDs, traces are useless
- Never log at
:debuglevel in production — it includes query parameters and PII; use:infolevel instead