Module ot_observer
An Observer
is a callback based instrument with a LastValue
aggregator.
This module defines the ot_observer
behaviour.
Required callback functions: set_callback/3
, observe/3
.
Description
On each collection cycle each Observer callback is run and passed an
ObserverInstrument
variable to use when observe
ing the new value, passing
the ObserverInstrument
, the new value and a list of attributes, key/value pairs.
Data Types
callback()
callback() = fun((instrument()) -> ok)
instrument()
instrument() = term()