Class ObservableInstrument

Inheritance Relationships

Base Type

  • public opentelemetry::metrics::ObservableInstrument

Class Documentation

class ObservableInstrument : public opentelemetry::metrics::ObservableInstrument

Public Functions

ObservableInstrument(InstrumentDescriptor instrument_descriptor, std::unique_ptr<AsyncWritableMetricStorage> storage, std::shared_ptr<ObservableRegistry> observable_registry)
~ObservableInstrument() override
void AddCallback(opentelemetry::metrics::ObservableCallbackPtr callback, void *state) noexcept override
void RemoveCallback(opentelemetry::metrics::ObservableCallbackPtr callback, void *state) noexcept override
const InstrumentDescriptor &GetInstrumentDescriptor()
AsyncWritableMetricStorage *GetMetricStorage()