Crate trillium_opentelemetry
source ·Expand description
This crate provides opentelemetry metrics conforming to semantic conventions for http.
Re-exports§
pub use opentelemetry;
Modules§
- instrumentation using [
opentelemetry::global
]
Structs§
- a handler to send both traces and metrics in accordances with semantic conventions for http.
- Trillium handler that instruments handlers with spans.
- Trillium handler that instruments http.server.request.duration, http.server.request.body.size, and http.server.response.body.size as per semantic conventions for http.
- Trillium handler that instruments per-request spans as per semantic conventions for http.
Functions§
- construct an
Instrument
with the provided meter and tracer - decorate a handler with a specific tracer
- Alias for
Trace::new