userver: tracing::InPlaceSpan 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::InPlaceSpan Class Referencefinal

#include <userver/tracing/in_place_span.hpp>

Detailed Description

Avoids an extra allocation by storing tracing::Span data in-place.

Warning
Never put InPlaceSpan on the stack! It has a large size and can cause stack overflow.

Definition at line 18 of file in_place_span.hpp.

Public Member Functions

 InPlaceSpan (std::string &&name, utils::impl::SourceLocation source_location=utils::impl::SourceLocation::Current())
 
 InPlaceSpan (std::string &&name, std::string &&trace_id, std::string &&parent_span_id, utils::impl::SourceLocation source_location=utils::impl::SourceLocation::Current())
 
 InPlaceSpan (InPlaceSpan &&)=delete
 
InPlaceSpanoperator= (InPlaceSpan &&)=delete
 
tracing::SpanGet () noexcept
 

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