pub async fn http_tracing_middleware(
matched_path: Option<MatchedPath>,
req: Request,
next: Next,
) -> ResponseExpand description
Tracing middleware for HTTP requests
This middleware:
- Extracts trace context from incoming request headers (W3C Trace Context)
- Creates a span for the request
- Records span attributes (method, path, status, duration)
- Injects trace context into response headers
- Records errors with proper span status