diff options
| author | pechatnov <[email protected]> | 2025-11-11 11:03:48 +0300 |
|---|---|---|
| committer | pechatnov <[email protected]> | 2025-11-11 11:22:27 +0300 |
| commit | b9bb3b673da2a334c04287c1708eeea436fdb366 (patch) | |
| tree | 77cfe07e07c7c136ea4ede92c72e940371264a3e | |
| parent | 823d6852283c5cf1f875b505f73968db253e7a6a (diff) | |
Stop old tracer asynchronously when replacing old tracer with new one
Чтобы трейсер можно было повторно конфигурить вызовом ConfigureSingletons
А он происходит под спинлоком
https://nda.ya.ru/t/QrU79ucQ7MmHMb
commit_hash:c573a04d19e41c80f128ac9f0ee50d2c46968f34
| -rw-r--r-- | yt/yt/core/tracing/trace_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt/yt/core/tracing/trace_context.cpp b/yt/yt/core/tracing/trace_context.cpp index 863ca550ed5..8fb3e249d7f 100644 --- a/yt/yt/core/tracing/trace_context.cpp +++ b/yt/yt/core/tracing/trace_context.cpp @@ -82,7 +82,7 @@ void SetGlobalTracer(const ITracerPtr& tracer) } if (oldTracer) { - oldTracer->Stop(); + GetFinalizerInvoker()->Invoke(BIND(&ITracer::Stop, oldTracer)); } } |
