Class SpanContextKeyValueIterable

Inheritance Relationships

Derived Type

Class Documentation

class SpanContextKeyValueIterable

Supports internal iteration over a collection of SpanContext/key-value pairs.

Subclassed by opentelemetry::trace::NullSpanContext

Public Functions

virtual ~SpanContextKeyValueIterable() = default
virtual bool ForEachKeyValue(nostd::function_ref<bool(SpanContext, const common::KeyValueIterable&)> callback) const noexcept = 0

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

virtual size_t size() const noexcept = 0

the number of key-value pairs