diff options
author | shakurov <shakurov@yandex-team.com> | 2023-11-28 13:24:49 +0300 |
---|---|---|
committer | shakurov <shakurov@yandex-team.com> | 2023-11-28 15:00:25 +0300 |
commit | f0d88c8bfa01a469dc1bfc1ad669d8734ac977ea (patch) | |
tree | 97d9a6c0289994369737de7363dd067245a5d972 /yt | |
parent | b973f9bd7ea2ef00bba434f52cd6c2944024fab8 (diff) | |
download | ydb-f0d88c8bfa01a469dc1bfc1ad669d8734ac977ea.tar.gz |
Nodiscard for TWithTagGuard constructor.
Diffstat (limited to 'yt')
-rw-r--r-- | yt/yt/library/profiling/producer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt/yt/library/profiling/producer.h b/yt/yt/library/profiling/producer.h index 1212a8f185..d71a80c03f 100644 --- a/yt/yt/library/profiling/producer.h +++ b/yt/yt/library/profiling/producer.h @@ -38,8 +38,10 @@ public: TWithTagGuard(const TWithTagGuard&) = delete; TWithTagGuard(TWithTagGuard&&) = delete; + [[nodiscard]] explicit TWithTagGuard(ISensorWriter* writer); // NB: For convenience. + [[nodiscard]] TWithTagGuard(ISensorWriter* writer, TString tagKey, TString tagValue); ~TWithTagGuard(); |