mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-23 10:53:02 +01:00
Add HTTP method to span fields (#12)
This commit is contained in:
parent
902f7d75d3
commit
56a0b1aa4c
@ -180,6 +180,7 @@ where
|
||||
let request_id = RequestId(Uuid::new_v4());
|
||||
let span = tracing::info_span!(
|
||||
"Request",
|
||||
http.method = %req.method(),
|
||||
request_path = %req.path(),
|
||||
user_agent = %user_agent,
|
||||
client_ip_address = %req.connection_info().realip_remote_addr().unwrap_or(""),
|
||||
|
Loading…
x
Reference in New Issue
Block a user