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 observeing the new value, passing the ObserverInstrument, the new value and a list of attributes, key/value pairs.

Data Types

callback()

instrument()

observer_instrument()

observer_result()