telemetry-essentials

Provides telemetry and observability patterns for Elixir/Phoenix apps including Logger, LiveDashboard integration, and safe production logging practices.

149|15|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/j-morgan6/elixir-phoenix-guide --skill telemetry-essentials
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: telemetry-essentials
Source: https://github.com/j-morgan6/elixir-phoenix-guide/tree/main/skills/telemetry-essentials
Command: npx skills add https://github.com/j-morgan6/elixir-phoenix-guide --skill telemetry-essentials

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Telemetry essentials provide structured, consistent observability patterns across Elixir applications, enabling reliable logging, metrics, and event tracing.

Core Features & Use Cases

  • Structured logging with metadata to improve searchability and reduce ambiguity.
  • Telemetry attachment patterns that ensure handlers are registered once during application startup.
  • Ecto and Phoenix telemetry events integration for automated visibility into queries, requests, and lifecycle events.
  • LiveDashboard integration guidance for dev/stage environments to observe system health with minimal setup.
  • Safe production logging practices including metadata tagging and avoidance of sensitive data in logs.

Quick Start

Attach telemetry handlers at application startup to begin monitoring requests, queries, and events.

Frequently Asked Questions about telemetry-essentials

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I attach telemetry handlers in an Elixir application?

You attach telemetry handlers during Application.start to ensure they are registered exactly once at startup. This pattern prevents duplicate event registrations and provides consistent observability for Elixir and Phoenix apps.

What is structured logging in Elixir and how does it improve observability?

Structured logging in Elixir attaches metadata to log entries to improve searchability and reduce ambiguity. Tagging metadata allows you to filter logs effectively while following safe production practices to avoid exposing sensitive data.

How do I capture Ecto and Phoenix telemetry events for query monitoring?

Capture Ecto and Phoenix telemetry events by integrating specific handler patterns that expose automated visibility into database queries and request lifecycle events. These patterns attach to standard Telemetry events for immediate metrics.

Can I use Phoenix LiveDashboard to observe telemetry metrics in production?

Phoenix LiveDashboard integration is guided for dev and stage environments to observe system health with minimal setup. For production, the patterns emphasize safe logging practices and metadata tagging rather than LiveDashboard exposure.

What is the best way to structure Elixir observability for consistent metrics?

The best way to structure Elixir observability is applying consistent telemetry patterns across Phoenix apps, including Logger integration, Ecto event tracking, and attaching handlers at application startup to expose metrics through dashboards.