Class ObservableInstrument
Defined in File async_instruments.h
Inheritance Relationships
Derived Types
public opentelemetry::metrics::NoopObservableInstrument
(Class NoopObservableInstrument)public opentelemetry::sdk::metrics::ObservableInstrument
(Class ObservableInstrument)
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.
-
ObservableInstrument() = default