Class NoopSpan
Defined in File noop.h
Inheritance Relationships
Base Type
public opentelemetry::trace::Span
(Class Span)
Class Documentation
-
class NoopSpan : public opentelemetry::trace::Span
No-op implementation of Span. This class should not be used directly.
Public Functions
-
inline virtual void SetAttribute(nostd::string_view, const common::AttributeValue&) noexcept override
Sets an attribute on the Span (ABI).
If the Span previously contained a mapping for the key, the old value is replaced.
See comments about sampling in opentelemetry::trace::Span
-
inline virtual void AddEvent(nostd::string_view) noexcept override
-
inline virtual void AddEvent(nostd::string_view, common::SystemTimestamp) noexcept override
-
inline virtual void AddEvent(nostd::string_view, const common::KeyValueIterable&) noexcept override
-
inline virtual void AddEvent(nostd::string_view, common::SystemTimestamp, const common::KeyValueIterable&) noexcept override
-
inline virtual void SetStatus(StatusCode, nostd::string_view) noexcept override
-
inline virtual void UpdateName(nostd::string_view) noexcept override
-
inline virtual void End(const EndSpanOptions&) noexcept override
Mark the end of the Span. Only the timing of the first End call for a given Span will be recorded, and implementations are free to ignore all further calls.
- Parameters:
options – can be used to manually define span properties like the end timestamp
-
inline virtual bool IsRecording() const noexcept override
-
inline virtual SpanContext GetContext() const noexcept override
-
inline virtual void SetAttribute(nostd::string_view, const common::AttributeValue&) noexcept override