Class NoopKeyValueIterable
Defined in File key_value_iterable.h
Inheritance Relationships
Base Type
public opentelemetry::common::KeyValueIterable
(Class KeyValueIterable)
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
No-op implementation: does not invoke the callback, even if key-value pairs are present.
- Returns:
true without iterating or invoking the callback
-
inline virtual size_t size() const noexcept override
- Returns:
the number of key-value pairs
-
~NoopKeyValueIterable() override = default