A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
Loading...
Searching...
No Matches
a11::obs::RecordedSpan Struct Reference

Finished span snapshot returned by the in-memory exporter. More...

#include <cpp/a11/obs/provider.h>

Public Attributes

std::string name
 Final span name.
 
std::string trace_id
 32 lowercase hex characters.
 
std::string span_id
 16 lowercase hex characters.
 
std::string parent_span_id
 Parent id, or empty for a root span.
 
SpanKind kind = SpanKind::kInternal
 OTel relationship kind.
 
int status_code = 0
 OTel status: 0 unset, 1 OK, 2 error.
 
std::string status_description
 Optional error explanation.
 
std::vector< std::pair< std::string, std::string > > attributes
 Final attributes.
 
std::vector< RecordedEventevents
 Events in recording order.
 

Detailed Description

Finished span snapshot returned by the in-memory exporter.

Member Data Documentation

◆ attributes

std::vector<std::pair<std::string, std::string> > a11::obs::RecordedSpan::attributes

Final attributes.

◆ events

std::vector<RecordedEvent> a11::obs::RecordedSpan::events

Events in recording order.

◆ kind

SpanKind a11::obs::RecordedSpan::kind = SpanKind::kInternal

OTel relationship kind.

◆ name

std::string a11::obs::RecordedSpan::name

Final span name.

◆ parent_span_id

std::string a11::obs::RecordedSpan::parent_span_id

Parent id, or empty for a root span.

◆ span_id

std::string a11::obs::RecordedSpan::span_id

16 lowercase hex characters.

◆ status_code

int a11::obs::RecordedSpan::status_code = 0

OTel status: 0 unset, 1 OK, 2 error.

◆ status_description

std::string a11::obs::RecordedSpan::status_description

Optional error explanation.

◆ trace_id

std::string a11::obs::RecordedSpan::trace_id

32 lowercase hex characters.


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