userver: tracing::SpanBuilder Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
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 16 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 trace_id)
 
const std::string & GetTraceId () const noexcept
 
void SetSpanId (std::string span_id)
 
void SetParentSpanId (std::string parent_span_id)
 
void SetParentLink (std::string parent_link)
 
void AddTagFrozen (std::string key, logging::LogExtra::Value value)
 
void AddNonInheritableTag (std::string key, logging::LogExtra::Value value)
 
Span Build () &&
 

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