8#include <userver/tracing/span.hpp>
9#include <userver/utils/impl/source_location.hpp>
11USERVER_NAMESPACE_BEGIN
16class SpanBuilder
final {
20 const utils::impl::SourceLocation& location = utils::impl::SourceLocation::Current()
23 void SetTraceId(std::string trace_id);
24 const std::string& GetTraceId()
const noexcept;
25 void SetSpanId(std::string span_id);
26 void SetParentSpanId(std::string parent_span_id);
27 void SetParentLink(std::string parent_link);
28 void AddTagFrozen(std::string key,
logging::LogExtra::Value value);
29 void AddNonInheritableTag(std::string key,
logging::LogExtra::Value value);
33 std::unique_ptr<Span::Impl, Span::OptionalDeleter> pimpl_;