diff options
author | uranix <uranix@yandex-team.ru> | 2022-02-16 23:11:40 +0300 |
---|---|---|
committer | uranix <uranix@yandex-team.ru> | 2022-02-16 23:11:40 +0300 |
commit | f42bd1169c0d090ffe034f8d1cd474d3432a6423 (patch) | |
tree | 0ee6ff754ff9da5b6a0bcde9097a634f0b1abc26 | |
parent | bdfc720688815166c8a7cc42c7f3a4fd9151016d (diff) | |
download | ydb-f42bd1169c0d090ffe034f8d1cd474d3432a6423.tar.gz |
Minor improvements for NWilson::TTraceId
ref:94dfa4c50b47ee74eb3260a8e79a37497446affc
-rw-r--r-- | library/cpp/actors/wilson/wilson_trace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/actors/wilson/wilson_trace.h b/library/cpp/actors/wilson/wilson_trace.h index 3d1ca50562..cfbf93059b 100644 --- a/library/cpp/actors/wilson/wilson_trace.h +++ b/library/cpp/actors/wilson/wilson_trace.h @@ -96,7 +96,7 @@ namespace NWilson { } // Check if request tracing is enabled - operator bool() const { + explicit operator bool() const { return TraceId != 0; } @@ -151,7 +151,7 @@ namespace NWilson { return TraceId == other.TraceId; } - void Serialize(TSerializedTraceId* out) { + void Serialize(TSerializedTraceId* out) const { ui64* p = reinterpret_cast<ui64*>(*out); p[0] = TraceId; p[1] = SpanId; |