Skip to content

Commit e5af77f

Browse files
Create tracer.h
1 parent 607fd1c commit e5af77f

File tree

1 file changed

+25
-0
lines changed
  • include/ydb-cpp-sdk/client/tracing

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#pragma once
2+
3+
#include <memory>
4+
#include <string>
5+
6+
namespace NYdb::inline V3 {
7+
namespace NTracing {
8+
9+
class ISpan {
10+
public:
11+
virtual ~ISpan() = default;
12+
13+
virtual void AddAttribute(const std::string& key, const std::string& value) = 0;
14+
virtual void End() = 0;
15+
};
16+
17+
class ITracer {
18+
public:
19+
virtual ~ITracer() = default;
20+
21+
virtual std::unique_ptr<ISpan> StartSpan(const std::string& name) = 0;
22+
};
23+
24+
} // namespace NTracing
25+
} // namespace NYdb

0 commit comments

Comments
 (0)