aboutsummaryrefslogtreecommitdiffstats
path: root/yt
diff options
context:
space:
mode:
authorshakurov <shakurov@yandex-team.com>2023-11-28 13:24:49 +0300
committershakurov <shakurov@yandex-team.com>2023-11-28 15:00:25 +0300
commitf0d88c8bfa01a469dc1bfc1ad669d8734ac977ea (patch)
tree97d9a6c0289994369737de7363dd067245a5d972 /yt
parentb973f9bd7ea2ef00bba434f52cd6c2944024fab8 (diff)
downloadydb-f0d88c8bfa01a469dc1bfc1ad669d8734ac977ea.tar.gz
Nodiscard for TWithTagGuard constructor.
Diffstat (limited to 'yt')
-rw-r--r--yt/yt/library/profiling/producer.h2
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();