SpanData is a representation of all data collected by a span.
Definition at line 109 of file includes/opentelemetry/sdk/trace/span_data.h.


Public Member Functions | |
| SpanData () | |
| opentelemetry::trace::TraceId | GetTraceId () const noexcept |
| Get the trace id for this span. More... | |
| opentelemetry::trace::SpanId | GetSpanId () const noexcept |
| Get the span id for this span. More... | |
| const opentelemetry::trace::SpanContext & | GetSpanContext () const noexcept |
| Get the span context for this span. More... | |
| opentelemetry::trace::SpanId | GetParentSpanId () const noexcept |
| Get the parent span id for this span. More... | |
| opentelemetry::nostd::string_view | GetName () const noexcept |
| Get the name for this span. More... | |
| opentelemetry::trace::TraceFlags | GetFlags () const noexcept |
| Get the trace flags for this span. More... | |
| opentelemetry::trace::SpanKind | GetSpanKind () const noexcept |
| Get the kind of this span. More... | |
| opentelemetry::trace::StatusCode | GetStatus () const noexcept |
| Get the status for this span. More... | |
| opentelemetry::nostd::string_view | GetDescription () const noexcept |
| Get the status description for this span. More... | |
| const opentelemetry::sdk::resource::Resource & | GetResource () const noexcept |
| Get the attributes associated with the resource. More... | |
| const opentelemetry::sdk::trace::InstrumentationScope & | GetInstrumentationScope () const noexcept |
| Get the attributes associated with the resource. More... | |
| const opentelemetry::sdk::trace::InstrumentationScope & | GetInstrumentationLibrary () const noexcept |
| opentelemetry::common::SystemTimestamp | GetStartTime () const noexcept |
| Get the start time for this span. More... | |
| std::chrono::nanoseconds | GetDuration () const noexcept |
| Get the duration for this span. More... | |
| const std::unordered_map< std::string, opentelemetry::sdk::common::OwnedAttributeValue > & | GetAttributes () const noexcept |
| Get the attributes for this span. More... | |
| const std::vector< SpanDataEvent > & | GetEvents () const noexcept |
| Get the events associated with this span. More... | |
| const std::vector< SpanDataLink > & | GetLinks () const noexcept |
| Get the links associated with this span. More... | |
| void | SetIdentity (const opentelemetry::trace::SpanContext &span_context, opentelemetry::trace::SpanId parent_span_id) noexcept override |
| void | SetAttribute (nostd::string_view key, const opentelemetry::common::AttributeValue &value) noexcept override |
| void | AddEvent (nostd::string_view name, opentelemetry::common::SystemTimestamp timestamp=opentelemetry::common::SystemTimestamp(std::chrono::system_clock::now()), const opentelemetry::common::KeyValueIterable &attributes=opentelemetry::common::KeyValueIterableView< std::map< std::string, int32_t >>({})) noexcept override |
| void | AddLink (const opentelemetry::trace::SpanContext &span_context, const opentelemetry::common::KeyValueIterable &attributes) noexcept override |
| void | SetStatus (opentelemetry::trace::StatusCode code, nostd::string_view description) noexcept override |
| void | SetName (nostd::string_view name) noexcept override |
| void | SetTraceFlags (opentelemetry::trace::TraceFlags flags) noexcept override |
| void | SetSpanKind (opentelemetry::trace::SpanKind span_kind) noexcept override |
| void | SetResource (const opentelemetry::sdk::resource::Resource &resource) noexcept override |
| void | SetStartTime (opentelemetry::common::SystemTimestamp start_time) noexcept override |
| void | SetDuration (std::chrono::nanoseconds duration) noexcept override |
| void | SetInstrumentationScope (const InstrumentationScope &instrumentation_scope) noexcept override |
| SpanData () | |
| opentelemetry::trace::TraceId | GetTraceId () const noexcept |
| Get the trace id for this span. More... | |
| opentelemetry::trace::SpanId | GetSpanId () const noexcept |
| Get the span id for this span. More... | |
| const opentelemetry::trace::SpanContext & | GetSpanContext () const noexcept |
| Get the span context for this span. More... | |
| opentelemetry::trace::SpanId | GetParentSpanId () const noexcept |
| Get the parent span id for this span. More... | |
| opentelemetry::nostd::string_view | GetName () const noexcept |
| Get the name for this span. More... | |
| opentelemetry::trace::TraceFlags | GetFlags () const noexcept |
| Get the trace flags for this span. More... | |
| opentelemetry::trace::SpanKind | GetSpanKind () const noexcept |
| Get the kind of this span. More... | |
| opentelemetry::trace::StatusCode | GetStatus () const noexcept |
| Get the status for this span. More... | |
| opentelemetry::nostd::string_view | GetDescription () const noexcept |
| Get the status description for this span. More... | |
| const opentelemetry::sdk::resource::Resource & | GetResource () const noexcept |
| Get the attributes associated with the resource. More... | |
| const opentelemetry::sdk::trace::InstrumentationScope & | GetInstrumentationScope () const noexcept |
| Get the attributes associated with the resource. More... | |
| const opentelemetry::sdk::trace::InstrumentationScope & | GetInstrumentationLibrary () const noexcept |
| opentelemetry::common::SystemTimestamp | GetStartTime () const noexcept |
| Get the start time for this span. More... | |
| std::chrono::nanoseconds | GetDuration () const noexcept |
| Get the duration for this span. More... | |
| const std::unordered_map< std::string, opentelemetry::sdk::common::OwnedAttributeValue > & | GetAttributes () const noexcept |
| Get the attributes for this span. More... | |
| const std::vector< SpanDataEvent > & | GetEvents () const noexcept |
| Get the events associated with this span. More... | |
| const std::vector< SpanDataLink > & | GetLinks () const noexcept |
| Get the links associated with this span. More... | |
| void | SetIdentity (const opentelemetry::trace::SpanContext &span_context, opentelemetry::trace::SpanId parent_span_id) noexcept override |
| void | SetAttribute (nostd::string_view key, const opentelemetry::common::AttributeValue &value) noexcept override |
| void | AddEvent (nostd::string_view name, opentelemetry::common::SystemTimestamp timestamp=opentelemetry::common::SystemTimestamp(std::chrono::system_clock::now()), const opentelemetry::common::KeyValueIterable &attributes=opentelemetry::common::KeyValueIterableView< std::map< std::string, int32_t >>({})) noexcept override |
| void | AddLink (const opentelemetry::trace::SpanContext &span_context, const opentelemetry::common::KeyValueIterable &attributes) noexcept override |
| void | SetStatus (opentelemetry::trace::StatusCode code, nostd::string_view description) noexcept override |
| void | SetName (nostd::string_view name) noexcept override |
| void | SetTraceFlags (opentelemetry::trace::TraceFlags flags) noexcept override |
| void | SetSpanKind (opentelemetry::trace::SpanKind span_kind) noexcept override |
| void | SetResource (const opentelemetry::sdk::resource::Resource &resource) noexcept override |
| void | SetStartTime (opentelemetry::common::SystemTimestamp start_time) noexcept override |
| void | SetDuration (std::chrono::nanoseconds duration) noexcept override |
| void | SetInstrumentationScope (const InstrumentationScope &instrumentation_scope) noexcept override |
| void | AddEvent (nostd::string_view name) |
| Add an event to a span with default timestamp and attributes. More... | |
| void | AddEvent (nostd::string_view name, opentelemetry::common::SystemTimestamp timestamp) |
| Add an event to a span with default (empty) attributes. More... | |
| void | AddEvent (nostd::string_view name, const opentelemetry::common::KeyValueIterable &attributes) noexcept |
| Add an event to a span. More... | |
| void | AddLink (opentelemetry::trace::SpanContext span_context) |
| Add a link to a span with default (empty) attributes. More... | |
| virtual | operator SpanData * () const |
| Get the SpanData object for this Recordable. More... | |
| virtual | operator SpanData * () const |
| Get the SpanData object for this Recordable. More... | |
| void | SetInstrumentationLibrary (const InstrumentationScope &instrumentation_scope) noexcept |
| void | SetInstrumentationLibrary (const InstrumentationScope &instrumentation_scope) noexcept |
|
inline |
Definition at line 112 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inline |
Definition at line 112 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlineinherited |
Add an event to a span with default timestamp and attributes.
| name | the name of the event |
Definition at line 79 of file includes/opentelemetry/sdk/trace/recordable.h.
References sdk::GetEmptyAttributes().
|
inlinenoexceptinherited |
Add an event to a span.
| name | the name of the event |
| attributes | the attributes associated with the event |
Definition at line 100 of file includes/opentelemetry/sdk/trace/recordable.h.
|
inlineinherited |
Add an event to a span with default (empty) attributes.
| name | the name of the event |
| timestamp | the timestamp of the event |
Definition at line 90 of file includes/opentelemetry/sdk/trace/recordable.h.
References sdk::GetEmptyAttributes().
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 256 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 256 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 267 of file includes/opentelemetry/sdk/trace/span_data.h.
References pydeepstreamdoc::node::NodeDoc::link.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 267 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
References pydeepstreamdoc::node::NodeDoc::link.
|
inlineinherited |
Add a link to a span with default (empty) attributes.
| span_context | the span context of the linked span |
Definition at line 119 of file includes/opentelemetry/sdk/trace/recordable.h.
References sdk::GetEmptyAttributes().
|
inlinenoexcept |
Get the attributes for this span.
Definition at line 226 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the attributes for this span.
Definition at line 226 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the status description for this span.
Definition at line 165 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the status description for this span.
Definition at line 165 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the duration for this span.
Definition at line 219 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the duration for this span.
Definition at line 219 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the events associated with this span.
Definition at line 235 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the events associated with this span.
Definition at line 235 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the trace flags for this span.
Definition at line 147 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the trace flags for this span.
Definition at line 147 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Definition at line 204 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
References GetInstrumentationScope().
|
inlinenoexcept |
Definition at line 204 of file includes/opentelemetry/sdk/trace/span_data.h.
References GetInstrumentationScope().
|
inlinenoexcept |
Get the attributes associated with the resource.
Definition at line 189 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the attributes associated with the resource.
Definition at line 189 of file includes/opentelemetry/sdk/trace/span_data.h.
Referenced by GetInstrumentationLibrary().
|
inlinenoexcept |
Get the links associated with this span.
Definition at line 241 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the links associated with this span.
Definition at line 241 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the name for this span.
Definition at line 141 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the name for this span.
Definition at line 141 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the parent span id for this span.
Definition at line 135 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the parent span id for this span.
Definition at line 135 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the attributes associated with the resource.
Definition at line 172 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the attributes associated with the resource.
Definition at line 172 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the span context for this span.
Definition at line 129 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the span context for this span.
Definition at line 129 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the span id for this span.
Definition at line 123 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the span id for this span.
Definition at line 123 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the kind of this span.
Definition at line 153 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the kind of this span.
Definition at line 153 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the start time for this span.
Definition at line 213 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the start time for this span.
Definition at line 213 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the status for this span.
Definition at line 159 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the status for this span.
Definition at line 159 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the trace id for this span.
Definition at line 117 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexcept |
Get the trace id for this span.
Definition at line 117 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlineexplicitvirtualinherited |
Get the SpanData object for this Recordable.
Definition at line 173 of file 9.2/includes/opentelemetry/sdk/trace/recordable.h.
|
inlineexplicitvirtualinherited |
Get the SpanData object for this Recordable.
Definition at line 173 of file includes/opentelemetry/sdk/trace/recordable.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 250 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 250 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 303 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 303 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 243 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 243 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlinenoexceptinherited |
Definition at line 183 of file includes/opentelemetry/sdk/trace/recordable.h.
|
inlinenoexceptinherited |
Definition at line 183 of file 9.2/includes/opentelemetry/sdk/trace/recordable.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 305 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 305 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 281 of file includes/opentelemetry/sdk/trace/span_data.h.
References nostd::string_view::data(), and nostd::string_view::length().
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 281 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
References nostd::string_view::data(), and nostd::string_view::length().
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 293 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 293 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 288 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 288 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 298 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 298 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 274 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Implements sdk::trace::Recordable.
Definition at line 274 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Reimplemented from sdk::trace::Recordable.
Definition at line 286 of file includes/opentelemetry/sdk/trace/span_data.h.
|
inlineoverridevirtualnoexcept |
Reimplemented from sdk::trace::Recordable.
Definition at line 286 of file 9.2/includes/opentelemetry/sdk/trace/span_data.h.