proxy: Record role to span (#7407)

## Problem

## Summary of changes

Add dbrole to span.
This commit is contained in:
Anna Khanova
2024-04-17 14:16:11 +02:00
committed by GitHub
parent fd49005cb3
commit d5708e7435
+2
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);
}