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

Parameters:

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

Returns:

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

inline virtual size_t size() const noexcept override
Returns:

the number of key-value pairs