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.
Structs§
- Info
- Information about the request/response that can be used to prepare log lines.
- Trace
- Decorates a
Filter
to create atracing
span for requests and responses.
Functions§
- named
- Create a wrapping filter that instruments every request with a
tracing
Span
at theDEBUG
level representing a named context. - request
- Create a wrapping filter that instruments every request with a
tracing
Span
at theINFO
level, containing a summary of the request. Additionally, if theDEBUG
level 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
tracing
Span
provided by a function.