Expand description
tracing filters.
tracing is a framework for instrumenting Rust programs to
collect scoped, structured, and async-aware diagnostics. This module
provides a set of filters for instrumenting Warp applications with tracing
spans. Spans can be used to associate individual events with a request,
and track contexts through the application.
Modules§
- internal 🔒
Structs§
- Info
- Information about the request/response that can be used to prepare log lines.
- Trace
- Decorates a
Filterto create atracingspan for requests and responses.
Functions§
- named
- Create a wrapping filter that instruments every request with a
tracingSpanat theDEBUGlevel representing a named context. - request
- Create a wrapping filter that instruments every request with a
tracingSpanat theINFOlevel, containing a summary of the request. Additionally, if theDEBUGlevel is enabled, the span will contain an event recording the request’s headers. - trace
- Create a wrapping filter that instruments every request with a custom
tracingSpanprovided by a function.