diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-12-13 15:08:28 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-12-13 15:55:06 +0300 |
commit | 7800ffcc112d88e155f1bdadd0f4d37afa2b112b (patch) | |
tree | d5f0c7b19154afede1a6250ffd9ceee36a107f8d | |
parent | aca24521d0f890cfb4970b1977c0fc19e9e6847b (diff) | |
download | ydb-7800ffcc112d88e155f1bdadd0f4d37afa2b112b.tar.gz |
Intermediate changes
-rw-r--r-- | yt/yt/library/tracing/jaeger/tracer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yt/yt/library/tracing/jaeger/tracer.cpp b/yt/yt/library/tracing/jaeger/tracer.cpp index 0eab9a81f82..351ec787d45 100644 --- a/yt/yt/library/tracing/jaeger/tracer.cpp +++ b/yt/yt/library/tracing/jaeger/tracer.cpp @@ -550,6 +550,7 @@ void TJaegerTracer::Flush() DequeueAll(config); if (TInstant::Now() - LastSuccessfulFlushTime_ > config->QueueStallTimeout) { + YT_LOG_DEBUG("Queue stall timeout expired (QueueStallTimeout: %v)", config->QueueStallTimeout); DropFullQueue(); } @@ -571,6 +572,14 @@ void TJaegerTracer::Flush() std::stack<TString> toRemove; auto keys = ExtractKeys(BatchInfo_); + + if (keys.empty()) { + YT_LOG_DEBUG("Span batch info is empty"); + LastSuccessfulFlushTime_ = flushStartTime; + NotifyEmptyQueue(); + return; + } + for (const auto& endpoint : keys) { auto [batches, batchCount, spanCount] = PeekQueue(config, endpoint); if (batchCount <= 0) { @@ -578,6 +587,7 @@ void TJaegerTracer::Flush() toRemove.push(endpoint); } YT_LOG_DEBUG("Span queue is empty (Endpoint: %v)", endpoint); + LastSuccessfulFlushTime_ = flushStartTime; continue; } |