Expand description
This crate provides opentelemetry metrics conforming to semantic conventions for http.
Re-exports§
pub use opentelemetry;
Modules§
- global
- instrumentation using [
opentelemetry::global]
Structs§
- Instrument
- a handler to send both traces and metrics in accordances with semantic conventions for http.
- Instrument
Handler - Trillium handler that instruments handlers with spans.
- Metrics
- 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.
- Trace
- Trillium handler that instruments per-request spans as per semantic conventions for http.
Functions§
- instrument
- construct an
Instrumentwith the provided meter and tracer - instrument_
handler - decorate a handler with a specific tracer
- metrics
- Constructs a
Metricshandler from a&'static str, [Meter], or [&Meter][Meter]. - trace
- Alias for
Trace::new