This commit is contained in:
Anna Khanova
2024-04-17 13:39:14 +02:00
parent f9627729e4
commit bbdcfb7984

View File

@@ -76,6 +76,7 @@ impl RequestMonitoring {
?session_id,
%peer_addr,
ep = tracing::field::Empty,
role = tracing::field::Empty,
);
Self {
@@ -157,6 +158,7 @@ impl RequestMonitoring {
}
pub fn set_user(&mut self, user: RoleName) {
self.span.record("role", display(&user));
self.user = Some(user);
}