mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
tracing: record HTTP request method
This commit is contained in:
parent
148df18989
commit
3365608101
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue