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 = "", AggregationType aggregation_type = AggregationType::kDefault, const 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()))
View(const View&) = delete
View(View&&) = delete
View &operator=(const View&) = delete
View &operator=(View&&) = delete
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 std::shared_ptr<const opentelemetry::sdk::metrics::AttributesProcessor> GetAttributesProcessor() const noexcept