diff options
author | alshabalin <alshabalin@yandex-team.ru> | 2022-02-10 16:50:42 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:42 +0300 |
commit | 020981ef3a489bf302730bf30ecbddda2848b2ca (patch) | |
tree | fa2885c6358da72a05b0f5136de8e34341b79ab9 /library | |
parent | 77ba323ac918adf37088050a634b205a4330eab6 (diff) | |
download | ydb-020981ef3a489bf302730bf30ecbddda2848b2ca.tar.gz |
Restoring authorship annotation for <alshabalin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/actors/wilson/wilson_trace.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/actors/wilson/wilson_trace.h b/library/cpp/actors/wilson/wilson_trace.h index 3d1ca50562..91292cca97 100644 --- a/library/cpp/actors/wilson/wilson_trace.h +++ b/library/cpp/actors/wilson/wilson_trace.h @@ -41,12 +41,12 @@ namespace NWilson { { } - explicit TTraceId(ui64 traceId) - : TraceId(traceId) - , SpanId(0) - { - } - + explicit TTraceId(ui64 traceId) + : TraceId(traceId) + , SpanId(0) + { + } + TTraceId(const TSerializedTraceId& in) : TraceId(reinterpret_cast<const ui64*>(in)[0]) , SpanId(reinterpret_cast<const ui64*>(in)[1]) @@ -91,10 +91,10 @@ namespace NWilson { return *this ? TTraceId(TraceId, GenerateSpanId()) : TTraceId(); } - ui64 GetTraceId() const { - return TraceId; - } - + ui64 GetTraceId() const { + return TraceId; + } + // Check if request tracing is enabled operator bool() const { return TraceId != 0; |