diff options
author | bulatman <bulatman@yandex-team.com> | 2023-10-11 16:54:49 +0300 |
---|---|---|
committer | bulatman <bulatman@yandex-team.com> | 2023-10-11 17:35:38 +0300 |
commit | bd765c460dee75ea893cf479b4d1cb8bbf85711c (patch) | |
tree | 67279e866943b2aedc2d50f9d1916a004ea86dc7 /yt | |
parent | 816268d29121af75802dc55e7f4a1ad3ff29dc46 (diff) | |
download | ydb-bd765c460dee75ea893cf479b4d1cb8bbf85711c.tar.gz |
YT: Create TCodicilGuard before start running RPC method
Diffstat (limited to 'yt')
-rw-r--r-- | yt/yt/core/rpc/service_detail.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/yt/yt/core/rpc/service_detail.cpp b/yt/yt/core/rpc/service_detail.cpp index e84b1ca06d..74ebf6b4b4 100644 --- a/yt/yt/core/rpc/service_detail.cpp +++ b/yt/yt/core/rpc/service_detail.cpp @@ -22,6 +22,7 @@ #include <yt/yt/core/logging/log_manager.h> +#include <yt/yt/core/misc/crash_handler.h> #include <yt/yt/core/misc/finally.h> #include <yt/yt/core/net/address.h> @@ -833,7 +834,13 @@ private: } { - TCurrentAuthenticationIdentityGuard identityGuard(&GetAuthenticationIdentity()); + const auto& authenticationIdentity = GetAuthenticationIdentity(); + TCodicilGuard codicilGuard(Format("RequestId: %v, Method: %v.%v, AuthenticationIdentity: %v", + GetRequestId(), + GetService(), + GetMethod(), + authenticationIdentity)); + TCurrentAuthenticationIdentityGuard identityGuard(&authenticationIdentity); handler(this, descriptor.Options); } } |