Class ObservableInstrument

Inheritance Relationships

Derived Types

Class Documentation

class ObservableInstrument

Subclassed by opentelemetry::metrics::NoopObservableInstrument, opentelemetry::sdk::metrics::ObservableInstrument

Public Functions

ObservableInstrument() = default
virtual ~ObservableInstrument() = default
virtual void AddCallback(ObservableCallbackPtr, void *state) noexcept = 0

Sets up a function that will be called whenever a metric collection is initiated.

virtual void RemoveCallback(ObservableCallbackPtr, void *state) noexcept = 0

Remove a function that was configured to be called whenever a metric collection is initiated.