Avoids an extra allocation by storing tracing::Span data in-place.
More...
#include <userver/tracing/in_place_span.hpp>
|
| 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 |
|
InPlaceSpan & | operator= (InPlaceSpan &&)=delete |
|
tracing::Span & | Get () noexcept |
|
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.
The documentation for this class was generated from the following file: