From 33656081011a3f937be1961749a1d41a221a458b Mon Sep 17 00:00:00 2001 From: Lambda Date: Thu, 23 May 2024 19:14:46 +0000 Subject: [PATCH] tracing: record HTTP request method --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7cb705e3..8ae705a3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -168,7 +168,7 @@ async fn run_server() -> io::Result<()> { request.uri().path() }; - tracing::info_span!("http_request", %path) + tracing::info_span!("http_request", %path, method = %request.method()) }, )) .layer(axum::middleware::from_fn(unrecognized_method))