Skip to navigation

holoscan::TraceContext

Beta
View as Markdown

Carry fixed-size distributed-trace identity for one logical operation.

A context owns no tracer or runtime state. It may be copied into bounded records and does not grant span creation, logging, or export authority.

#include <holoscan/activation.hpp>

Methods

valid

bool holoscan::TraceContext::valid() const noexcept

Return whether the context contains a trace identity.

Returns: true when trace_id is nonzero.


Static methods

root

static constexpr TraceContext holoscan::TraceContext::root(
) noexcept

Construct a root trace context from a trace identity.

Returns: Root context with no current or parent span identity.

Parameters

id
TraceId

Trace identity supplied by the caller or admitted runtime.


Member variables

NameTypeDescription
trace_idTraceIdNonzero trace identity, or zero when absent.
span_idSpanIdCurrent span identity, or zero when absent.
parent_span_idSpanIdParent span identity, or zero for a root.