Class View

Class Documentation

class View

View defines the interface to allow SDK user to customize the metrics before exported.

Public Functions

inline View(const std::string &name, const std::string &description = "", const std::string &unit = "", AggregationType aggregation_type = AggregationType::kDefault, std::shared_ptr<AggregationConfig> aggregation_config = nullptr, std::unique_ptr<opentelemetry::sdk::metrics::AttributesProcessor> attributes_processor = std::unique_ptr<opentelemetry::sdk::metrics::AttributesProcessor>(new opentelemetry::sdk::metrics::DefaultAttributesProcessor()))
virtual ~View() = default
inline virtual std::string GetName() const noexcept
inline virtual std::string GetDescription() const noexcept
inline virtual AggregationType GetAggregationType() const noexcept
inline virtual AggregationConfig *GetAggregationConfig() const noexcept
inline virtual const opentelemetry::sdk::metrics::AttributesProcessor &GetAttributesProcessor() const noexcept