# Telemetry

> Dynamic dispatching library for metrics and instrumentation on the Erlang VM

Source: https://talira.ai/catalog/telemetry-cy02ntk0
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [devops / observability / instrumentation](https://talira.ai/categories/devops/observability/instrumentation)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Backed by: [beam-telemetry](https://talira.ai/orgs/beam-telemetry.md)

Telemetry is a lightweight Erlang library, used from Elixir and Erlang alike, that gives the whole BEAM ecosystem one interface for instrumentation. A library emits events with telemetry:execute (an event name as a list of atoms, a map of measurements and a map of metadata), and application code or other libraries attach handlers to the events they care about to log, record metrics or forward them. telemetry:span wraps a piece of work in start, stop and exception events with durations measured for you. Handlers run synchronously in the emitting process, so they must stay fast. It's tooling-agnostic and separate from OpenTelemetry, which connects to it through opentelemetry_telemetry. Apache 2.0.

## Links

- GitHub: https://github.com/beam-telemetry/telemetry
- Docs: https://hexdocs.pm/telemetry/

## Problems it solves

- instrument my Elixir library so applications can collect its metrics
- hook into events from Phoenix or Ecto to log request latency
- emit start and stop events with durations around a piece of work in Erlang
- one instrumentation interface across Erlang and Elixir libraries

## Features

- telemetry:execute emits events with measurements and metadata
- Attach handlers to one or many events by name
- telemetry:span emits start, stop and exception events with durations
- Works from both Erlang and Elixir

## Limitations

- Handlers run synchronously on each telemetry:execute call, so a slow handler slows the code that emits the event[^1]

## Trust

Overall: 0.47 out of 1.
Signals: maintenance 0.62, adoption 0.59, momentum 0.30, community 0.63, backing 0.30, extensibility 0.00.

- last commit 13 days ago
- 3 commits in the last 90 days
- 923 GitHub stars
- 37 contributors
- backed by beam-telemetry

## Alternatives

- [OpenTelemetry](https://talira.ai/catalog/opentelemetry-7914wvb6.md): Vendor-neutral APIs, SDKs and tools for traces, metrics and logs
- [Telemetry.Metrics](https://talira.ai/catalog/telemetry-metrics-zt2qt5c3.md): Define metrics from Telemetry events in Elixir
- [Grafana Beyla](https://talira.ai/catalog/grafana-beyla-6p3ye355.md): eBPF-based auto-instrumentation: OpenTelemetry traces and RED metrics with no code changes

## Sources

[^1]: https://github.com/beam-telemetry/telemetry/blob/main/README.md (checked 26 Nov 2026)
[^2]: https://github.com/beam-telemetry/telemetry/blob/main/LICENSE (checked 26 Nov 2026)
