Class DefaultSpan¶
Defined in File default_span.h
Inheritance Relationships¶
Base Type¶
public opentelemetry::trace::Span
(Class Span)
Class Documentation¶
-
class
opentelemetry::trace
::
DefaultSpan
: public opentelemetry::trace::Span¶ Public Functions
-
inline trace::SpanContext
GetContext
() const noexcept¶
-
inline bool
IsRecording
() const noexcept¶
-
inline void
SetAttribute
(nostd::string_view, const common::AttributeValue&) noexcept¶
-
inline void
AddEvent
(nostd::string_view) noexcept¶
-
inline void
AddEvent
(nostd::string_view, common::SystemTimestamp) noexcept¶
-
inline void
AddEvent
(nostd::string_view, common::SystemTimestamp, const common::KeyValueIterable&) noexcept¶
-
inline void
AddEvent
(nostd::string_view name, const common::KeyValueIterable &attributes) noexcept¶
-
inline void
SetStatus
(StatusCode, nostd::string_view) noexcept¶
-
inline void
UpdateName
(nostd::string_view) noexcept¶
-
inline void
End
(const EndSpanOptions& = {}) noexcept¶
-
inline nostd::string_view
ToString
()¶
-
inline
DefaultSpan
(SpanContext span_context)¶
-
inline
DefaultSpan
(DefaultSpan &&spn)¶
-
inline
DefaultSpan
(const DefaultSpan &spn)¶
Public Static Functions
-
static inline DefaultSpan
GetInvalid
()¶
-
inline trace::SpanContext