#open-telemetry #web-server #http-middleware #otel #metrics #tower-compatible

opentelemetry-instrumentation-tower

OpenTelemetry Metrics Middleware for Tower-compatible Rust HTTP servers

1 unstable release

0.17.0 Oct 1, 2025

#1231 in HTTP server

Download history 547/week @ 2025-10-14 1155/week @ 2025-10-21 887/week @ 2025-10-28 502/week @ 2025-11-04 491/week @ 2025-11-11 546/week @ 2025-11-18 564/week @ 2025-11-25 761/week @ 2025-12-02 598/week @ 2025-12-09 1428/week @ 2025-12-16 301/week @ 2025-12-23 372/week @ 2025-12-30 1281/week @ 2026-01-06 1748/week @ 2026-01-13 3300/week @ 2026-01-20 2668/week @ 2026-01-27

9,280 downloads per month

Apache-2.0

34KB
610 lines

Tower OTEL Metrics Middleware

OpenTelemetry Metrics Middleware for Tower-compatible Rust HTTP servers.

Examples

See examples directory in repo for runnable code and supporting config files. Attempts are made to keep the code here synced, but it will not be perfect.

OTEL libraries in particular are sensitive to minor version changes at this point, so the examples may only work with the OTEL crate versions pinned in examples.

Created by Franco Posa (franco @ francoposa.io)

Dependencies

~1.9–2.7MB
~41K SLoC