1
0
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:
Lucas Sunsi 2021-03-23 08:13:29 -03:00 committed by GitHub
parent 902f7d75d3
commit 56a0b1aa4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(""),