Maintains a representation of a span in a format that can be processed by a recorder.
This class is thread-compatible.
Definition at line 44 of file includes/opentelemetry/sdk/trace/recordable.h.

Public Member Functions | |
| virtual | ~Recordable ()=default |
| virtual void | SetIdentity (const opentelemetry::trace::SpanContext &span_context, opentelemetry::trace::SpanId parent_span_id) noexcept=0 |
| Set the span context and parent span id. More... | |
| virtual void | SetAttribute (nostd::string_view key, const opentelemetry::common::AttributeValue &value) noexcept=0 |
| Set an attribute of a span. More... | |
| virtual void | AddEvent (nostd::string_view name, opentelemetry::common::SystemTimestamp timestamp, const opentelemetry::common::KeyValueIterable &attributes) noexcept=0 |
| Add an event to a span. More... | |
| 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... | |
| virtual void | AddLink (const opentelemetry::trace::SpanContext &span_context, const opentelemetry::common::KeyValueIterable &attributes) noexcept=0 |
| Add a link to a span. More... | |
| void | AddLink (opentelemetry::trace::SpanContext span_context) |
| Add a link to a span with default (empty) attributes. More... | |
| virtual void | SetStatus (opentelemetry::trace::StatusCode code, nostd::string_view description) noexcept=0 |
| Set the status of the span. More... | |
| virtual void | SetName (nostd::string_view name) noexcept=0 |
| Set the name of the span. More... | |
| virtual void | SetTraceFlags (opentelemetry::trace::TraceFlags) noexcept |
| Set the trace flags of the span. More... | |
| virtual void | SetSpanKind (opentelemetry::trace::SpanKind span_kind) noexcept=0 |
| Set the spankind of the span. More... | |
| virtual void | SetResource (const opentelemetry::sdk::resource::Resource &resource) noexcept=0 |
| Set Resource of the span. More... | |
| virtual void | SetStartTime (opentelemetry::common::SystemTimestamp start_time) noexcept=0 |
| Set the start time of the span. More... | |
| virtual void | SetDuration (std::chrono::nanoseconds duration) noexcept=0 |
| Set the duration of the span. More... | |
| virtual | operator SpanData * () const |
| Get the SpanData object for this Recordable. More... | |
| virtual void | SetInstrumentationScope (const InstrumentationScope &instrumentation_scope) noexcept=0 |
| Set the instrumentation scope of the span. More... | |
| void | SetInstrumentationLibrary (const InstrumentationScope &instrumentation_scope) noexcept |
| virtual | ~Recordable ()=default |
| virtual void | SetIdentity (const opentelemetry::trace::SpanContext &span_context, opentelemetry::trace::SpanId parent_span_id) noexcept=0 |
| Set the span context and parent span id. More... | |
| virtual void | SetAttribute (nostd::string_view key, const opentelemetry::common::AttributeValue &value) noexcept=0 |
| Set an attribute of a span. More... | |
| virtual void | AddEvent (nostd::string_view name, opentelemetry::common::SystemTimestamp timestamp, const opentelemetry::common::KeyValueIterable &attributes) noexcept=0 |
| Add an event to a span. More... | |
| 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... | |
| virtual void | AddLink (const opentelemetry::trace::SpanContext &span_context, const opentelemetry::common::KeyValueIterable &attributes) noexcept=0 |
| Add a link to a span. More... | |
| void | AddLink (opentelemetry::trace::SpanContext span_context) |
| Add a link to a span with default (empty) attributes. More... | |
| virtual void | SetStatus (opentelemetry::trace::StatusCode code, nostd::string_view description) noexcept=0 |
| Set the status of the span. More... | |
| virtual void | SetName (nostd::string_view name) noexcept=0 |
| Set the name of the span. More... | |
| virtual void | SetTraceFlags (opentelemetry::trace::TraceFlags) noexcept |
| Set the trace flags of the span. More... | |
| virtual void | SetSpanKind (opentelemetry::trace::SpanKind span_kind) noexcept=0 |
| Set the spankind of the span. More... | |
| virtual void | SetResource (const opentelemetry::sdk::resource::Resource &resource) noexcept=0 |
| Set Resource of the span. More... | |
| virtual void | SetStartTime (opentelemetry::common::SystemTimestamp start_time) noexcept=0 |
| Set the start time of the span. More... | |
| virtual void | SetDuration (std::chrono::nanoseconds duration) noexcept=0 |
| Set the duration of the span. More... | |
| virtual | operator SpanData * () const |
| Get the SpanData object for this Recordable. More... | |
| virtual void | SetInstrumentationScope (const InstrumentationScope &instrumentation_scope) noexcept=0 |
| Set the instrumentation scope of the span. More... | |
| void | SetInstrumentationLibrary (const InstrumentationScope &instrumentation_scope) noexcept |
|
virtualdefault |
|
virtualdefault |
|
inline |
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().
|
inline |
Add an event to a span with default timestamp and attributes.
| name | the name of the event |
Definition at line 79 of file 9.2/includes/opentelemetry/sdk/trace/recordable.h.
References sdk::GetEmptyAttributes().
|
inlinenoexcept |
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.
|
inlinenoexcept |
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 9.2/includes/opentelemetry/sdk/trace/recordable.h.
|
inline |
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().
|
inline |
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 9.2/includes/opentelemetry/sdk/trace/recordable.h.
References sdk::GetEmptyAttributes().
|
pure virtualnoexcept |
Add an event to a span.
| name | the name of the event |
| timestamp | the timestamp of the event |
| attributes | the attributes associated with the event |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Add an event to a span.
| name | the name of the event |
| timestamp | the timestamp of the event |
| attributes | the attributes associated with the event |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Add a link to a span.
| span_context | the span context of the linked span |
| attributes | the attributes associated with the link |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Add a link to a span.
| span_context | the span context of the linked span |
| attributes | the attributes associated with the link |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
inline |
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().
|
inline |
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 9.2/includes/opentelemetry/sdk/trace/recordable.h.
References sdk::GetEmptyAttributes().
|
inlineexplicitvirtual |
Get the SpanData object for this Recordable.
Definition at line 173 of file includes/opentelemetry/sdk/trace/recordable.h.
|
inlineexplicitvirtual |
Get the SpanData object for this Recordable.
Definition at line 173 of file 9.2/includes/opentelemetry/sdk/trace/recordable.h.
|
pure virtualnoexcept |
Set an attribute of a span.
| key | the name of the attribute |
| value | the attribute value |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set an attribute of a span.
| key | the name of the attribute |
| value | the attribute value |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the duration of the span.
| duration | the duration to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the duration of the span.
| duration | the duration to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the span context and parent span id.
| span_context | the span context to set |
| parent_span_id | the parent span id to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the span context and parent span id.
| span_context | the span context to set |
| parent_span_id | the parent span id to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
inlinenoexcept |
Definition at line 183 of file 9.2/includes/opentelemetry/sdk/trace/recordable.h.
|
inlinenoexcept |
Definition at line 183 of file includes/opentelemetry/sdk/trace/recordable.h.
|
pure virtualnoexcept |
Set the instrumentation scope of the span.
| instrumentation_scope | the instrumentation scope to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the instrumentation scope of the span.
| instrumentation_scope | the instrumentation scope to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the name of the span.
| name | the name to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the name of the span.
| name | the name to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set Resource of the span.
| resource | the resource to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set Resource of the span.
| resource | the resource to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the spankind of the span.
| span_kind | the spankind to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the spankind of the span.
| span_kind | the spankind to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the start time of the span.
| start_time | the start time to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the start time of the span.
| start_time | the start time to set |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the status of the span.
| code | the status code |
| description | a description of the status |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
pure virtualnoexcept |
Set the status of the span.
| code | the status code |
| description | a description of the status |
Implemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
|
inlinevirtualnoexcept |
Set the trace flags of the span.
Reimplemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
Definition at line 141 of file includes/opentelemetry/sdk/trace/recordable.h.
|
inlinevirtualnoexcept |
Set the trace flags of the span.
Reimplemented in sdk::trace::SpanData, sdk::trace::SpanData, sdk::trace::MultiRecordable, and sdk::trace::MultiRecordable.
Definition at line 141 of file 9.2/includes/opentelemetry/sdk/trace/recordable.h.