1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Attach remote and local address to HTTP server/client spans

This commit is contained in:
Quentin Gliech
2022-04-07 11:52:43 +02:00
parent bbcd03fa73
commit b43817e66c
7 changed files with 75 additions and 5 deletions

View File

@ -222,7 +222,7 @@ impl Options {
info!("Listening on http://{}", listener.local_addr().unwrap());
Server::from_tcp(listener)?
.serve(router.into_make_service())
.serve(router.into_make_service_with_connect_info::<SocketAddr>())
.with_graceful_shutdown(shutdown_signal())
.await?;