aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authoruranix <uranix@yandex-team.ru>2022-02-16 23:11:40 +0300
committeruranix <uranix@yandex-team.ru>2022-02-16 23:11:40 +0300
commitf42bd1169c0d090ffe034f8d1cd474d3432a6423 (patch)
tree0ee6ff754ff9da5b6a0bcde9097a634f0b1abc26 /library
parentbdfc720688815166c8a7cc42c7f3a4fd9151016d (diff)
downloadydb-f42bd1169c0d090ffe034f8d1cd474d3432a6423.tar.gz
Minor improvements for NWilson::TTraceId
ref:94dfa4c50b47ee74eb3260a8e79a37497446affc
Diffstat (limited to 'library')
-rw-r--r--library/cpp/actors/wilson/wilson_trace.h4
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;