diff --git a/proxy/src/auth/backend.rs b/proxy/src/auth/backend.rs index b8599adaeb..18bc80d523 100644 --- a/proxy/src/auth/backend.rs +++ b/proxy/src/auth/backend.rs @@ -140,7 +140,7 @@ async fn auth_quirks( impl BackendType<'_, ClientCredentials<'_>> { /// Authenticate the client via the requested backend, possibly using credentials. - #[tracing::instrument(fields(allow_cleartext), skip_all)] + #[tracing::instrument(fields(allow_cleartext = allow_cleartext), skip_all)] pub async fn authenticate( &mut self, extra: &ConsoleReqExtra<'_>, diff --git a/proxy/src/proxy.rs b/proxy/src/proxy.rs index efe0e8795b..03c9c72f30 100644 --- a/proxy/src/proxy.rs +++ b/proxy/src/proxy.rs @@ -98,7 +98,7 @@ pub async fn task_main( } // TODO(tech debt): unite this with its twin below. -#[tracing::instrument(fields(session_id), skip_all)] +#[tracing::instrument(fields(session_id = ?session_id), skip_all)] pub async fn handle_ws_client( config: &'static ProxyConfig, cancel_map: &CancelMap, @@ -140,7 +140,7 @@ pub async fn handle_ws_client( .await } -#[tracing::instrument(fields(session_id), skip_all)] +#[tracing::instrument(fields(session_id = ?session_id), skip_all)] async fn handle_client( config: &'static ProxyConfig, cancel_map: &CancelMap,