Telemetria
Automatic function telemetry macro with compile-time instrumentations.
automates function-level
:telemetry
emission in Elixir using declarative annotations and compile-time macros.
The Pitch
Adding observability to existing Elixir applications often requires cluttering business logic with repetitive calls to
:telemetry.execute/3
. Missing execution timings, uncaptured function arguments, or omitted error events make production troubleshooting painful.
Telemetria
solves this with single-line
@telemetria
annotations. Annotate any Elixir function, and Telemetria automatically generates compile-time wrappers that emit standardized telemetry events—capturing duration, execution state, arguments, and returned results cleanly.
Why Telemetria?
Zero-Boilerplate Annotations
Just write
@telemetria true
or
@telemetria level: :info
above your functions.
Automatic Event Generation
Emits start, stop, and exception telemetry events with execution timing in microseconds.
Compile-Time Optimization
Zero runtime cost when disabled in specific environments (e.g., test or benchmark environments).
Flexible Metric Handlers
Integrates seamlessly with standard
:telemetry_metrics
, TelemetryUI, and OpenTelemetry.
The Tech
| Language | Elixir |
| Core Dependency |
:telemetry
|
| Instrumentation | AST Metaprogramming / Macros |
| Hex Package |
telemetria
|
Who It's For
- Elixir Developers wanting transparent observability without polluting core module functions.
- Microservices & API Authors tracking execution latencies across internal domain functions.
-
SRE & Operations Engineers
building custom metrics pipelines over standard
:telemetryevents.
Bottom Line
Instrument Elixir functions with compile-time telemetry in a single annotation—clean, zero-boilerplate observability.