Type Alias opentelemetry::metrics::Callback
source · pub type Callback<T> = Box<dyn Fn(&dyn AsyncInstrument<T>) + Send + Sync>;
Expand description
A function registered with a Meter that makes observations for the instruments it is registered with.
The async instrument parameter is used to record measurement observations for these instruments.
The function needs to complete in a finite amount of time.
Aliased Type§
struct Callback<T>(/* private fields */);