dplutils.observer.Observer.observe#
- abstractmethod Observer.observe(name, value, **kwargs)[source]#
Observe a metric value
This is for generic metric that may or may not be monotonic increasing. This can be called any number of times using the same
nameto record updated values of the metric.Calling
incrementon a counter created using this function results in undefined behavior.- Parameters:
name – Name of metric
value – Value to record
**kwargs – kwargs to be passed to implementation specific function