Class NullSpanContext

Inheritance Relationships

Base Type

Class Documentation

class NullSpanContext : public opentelemetry::trace::SpanContextKeyValueIterable

Null Span context that does not carry any information.

Public Functions

inline virtual bool ForEachKeyValue(nostd::function_ref<bool(SpanContext, const common::KeyValueIterable&)>) const noexcept override

Iterate over SpanContext/key-value pairs


callback – a callback to invoke for each key-value for each SpanContext. If the callback returns false, the iteration is aborted.


true if every SpanContext/key-value pair was iterated over

inline virtual size_t size() const noexcept override

the number of key-value pairs