Class FilteringAttributesProcessor

Inheritance Relationships

Base Type

Class Documentation

class FilteringAttributesProcessor : public opentelemetry::sdk::metrics::AttributesProcessor

FilteringAttributesProcessor filters by allowed attribute names and drops any names that are not in the allow list.

Public Functions

inline FilteringAttributesProcessor(const std::unordered_map<std::string, bool> allowed_attribute_keys = {})
inline virtual MetricAttributes process(const opentelemetry::common::KeyValueIterable &attributes) const noexcept override