API Reference Instruments v2.4.0

modules

Modules

Instruments allows you to easily create and emit metrics from your application.

Creates custom prefixed functions

A behavior for a Probe.

A probe that reports erlang's internal CPU usage

The default stats reporter. Uses the Statix library.

A behavoiur for reporters.

A StatsReporter that logs to the Logger module.

A StatsReporter module that throws out all logging messages.

The Emitter is a simple module that subscribes to the Reporter and will invoke the corresponding handler on the Receiver.

The Receiver behavior defines callbacks that are invoked by the Emitter in response to system monitor events.

This module emits system monitor events

This module emits system monitor events

Since only one process can subscribe to system monitor events, the Reporter acts as a relay for system monitor events, allowing multiple subscribers to receive system monitor events.

The system monitor is broken into three concepts: the Reporter, the Emitter, and the Receiver.