cubos::core::tel::SpanManager class

Manages the creation and ending of spans.

Public static functions

static void begin(const std::string& name, Level level)
Begins a new span.
static void end()
Ends the current active span.
static auto current() -> SpanId
Gets the current active span.

Function documentation

static void cubos::core::tel::SpanManager::begin(const std::string& name, Level level)

Begins a new span.

Parameters
name Span name.
level Span level.

static SpanId cubos::core::tel::SpanManager::current()

Gets the current active span.

Returns Identifier of the current span.