Class NoopKeyValueIterable

Inheritance Relationships

Base Type

Class Documentation

class NoopKeyValueIterable : public opentelemetry::common::KeyValueIterable

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

Public Functions

~NoopKeyValueIterable() override = default
inline virtual bool ForEachKeyValue(nostd::function_ref<bool(nostd::string_view, common::AttributeValue)>) const noexcept override

Iterate over key-value pairs

Parameters

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

Returns

true if every key-value pair was iterated over

inline virtual size_t size() const noexcept override
Returns

the number of key-value pairs