Canonical address in HTTP requests
This commit is contained in:
parent
fb6822ca41
commit
e31854cb5a
1 changed files with 1 additions and 0 deletions
|
|
@ -604,6 +604,7 @@ impl HttpApi {
|
|||
if let Some(ConnectInfo(addr)) =
|
||||
req.extensions().get::<ConnectInfo<SocketAddr>>()
|
||||
{
|
||||
let addr = SocketAddr::new(addr.ip().to_canonical(), addr.port());
|
||||
error_span!("request", %method, %uri, %addr)
|
||||
} else {
|
||||
error_span!("request", %method, %uri)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue