diff --git a/controller/src/main.rs b/controller/src/main.rs index 72a0fd6..9893e85 100644 --- a/controller/src/main.rs +++ b/controller/src/main.rs @@ -44,7 +44,14 @@ struct VersionInfo { method = GET, path = "/version", }] -#[tracing::instrument()] +#[tracing::instrument( + skip(rqctx), + fields( + http.method=rqctx.request.method().as_str(), + http.path=rqctx.request.uri().path(), + http.remote_ip=rqctx.request.remote_addr().ip().to_string(), + ) +)] async fn api_version( rqctx: RequestContext>, ) -> Result, HttpError> {