Module otel_observer
An Observer
is a callback based instrument with a LastValue
aggregator.
This module defines the otel_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.