Class FilteringAttributesProcessor
Defined in File attributes_processor.h
Inheritance Relationships
Base Type
public opentelemetry::sdk::metrics::AttributesProcessor
(Class AttributesProcessor)
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
-
inline FilteringAttributesProcessor(const std::unordered_map<std::string, bool> allowed_attribute_keys = {})