userver: tracing::SpanBuilder Class Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
tracing::SpanBuilder Class Referencefinal

#include <userver/tracing/span_builder.hpp>

Detailed Description

Provides interface for editing Span, before final building.

Definition at line 17 of file span_builder.hpp.

Public Member Functions

 SpanBuilder (std::string name, const utils::impl::SourceLocation &location=utils::impl::SourceLocation::Current())
 
void SetTraceId (std::string_view trace_id)
 
std::string_view GetTraceId () const noexcept
 
void SetSpanId (std::string_view span_id)
 
void SetLink (std::string_view link)
 
void SetParentSpanId (std::string_view parent_span_id)
 
void SetParentLink (std::string_view parent_link)
 
void AddTagFrozen (std::string key, logging::LogExtra::Value value)
 
void AddNonInheritableTag (std::string key, logging::LogExtra::Value value)
 
Span Build () &&
 
Span BuildDetachedFromCoroStack () &&
 

The documentation for this class was generated from the following file: