We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fad89b4 commit cbaf74eCopy full SHA for cbaf74e
include/ydb-cpp-sdk/client/tracing/noop_tracer.h
@@ -0,0 +1,22 @@
1
+#pragma once
2
+
3
+#include <ydb-cpp-sdk/client/tracing/tracer.h>
4
5
+namespace NYdb::inline V3 {
6
+namespace NTracing {
7
8
+class TNoopSpan : public ISpan {
9
+public:
10
+ void AddAttribute(const std::string&, const std::string&) override {}
11
+ void End() override {}
12
+};
13
14
+class TNoopTracer : public ITracer {
15
16
+ std::unique_ptr<ISpan> StartSpan(const std::string&) override {
17
+ return std::make_unique<TNoopSpan>();
18
+ }
19
20
21
+} // namespace NTracing
22
+} // namespace NYdb
0 commit comments