Class Meter

Inheritance Relationships

Base Type

Class Documentation

class Meter : public opentelemetry::metrics::Meter

Public Functions

explicit Meter(std::weak_ptr<sdk::metrics::MeterContext> meter_context, std::unique_ptr<opentelemetry::sdk::instrumentationscope::InstrumentationScope> scope = opentelemetry::sdk::instrumentationscope::InstrumentationScope::Create("")) noexcept

Construct a new Meter with the given pipeline.

nostd::unique_ptr<opentelemetry::metrics::Counter<uint64_t>> CreateUInt64Counter(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::unique_ptr<opentelemetry::metrics::Counter<double>> CreateDoubleCounter(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::shared_ptr<opentelemetry::metrics::ObservableInstrument> CreateInt64ObservableCounter(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::shared_ptr<opentelemetry::metrics::ObservableInstrument> CreateDoubleObservableCounter(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::unique_ptr<opentelemetry::metrics::Histogram<uint64_t>> CreateUInt64Histogram(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::unique_ptr<opentelemetry::metrics::Histogram<double>> CreateDoubleHistogram(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::shared_ptr<opentelemetry::metrics::ObservableInstrument> CreateInt64ObservableGauge(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::shared_ptr<opentelemetry::metrics::ObservableInstrument> CreateDoubleObservableGauge(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::unique_ptr<opentelemetry::metrics::UpDownCounter<int64_t>> CreateInt64UpDownCounter(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::unique_ptr<opentelemetry::metrics::UpDownCounter<double>> CreateDoubleUpDownCounter(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::shared_ptr<opentelemetry::metrics::ObservableInstrument> CreateInt64ObservableUpDownCounter(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
nostd::shared_ptr<opentelemetry::metrics::ObservableInstrument> CreateDoubleObservableUpDownCounter(nostd::string_view name, nostd::string_view description = "", nostd::string_view unit = "") noexcept override
const sdk::instrumentationscope::InstrumentationScope *GetInstrumentationScope() const noexcept

Returns the associated instrumentation scope

inline const sdk::instrumentationscope::InstrumentationScope *GetInstrumentationLibrary() const noexcept
std::vector<MetricData> Collect(CollectorHandle *collector, opentelemetry::common::SystemTimestamp collect_ts) noexcept

collect metrics across all the instruments configured for the meter