Arrea.Telemetry.DebugHandler (Arrea v1.0.0)

Copy Markdown View Source

Debug handler for development.

Features:

  • Logs all telemetry events
  • Readable format
  • Filtering by component/type
  • Optional enable/disable

Usage

# Enable in development
Arrea.Telemetry.DebugHandler.attach()

# Disable
Arrea.Telemetry.DebugHandler.detach()

Summary

Functions

Attaches the debug handler to all relevant events.

Removes the debug handler.

Functions

attach()

@spec attach() :: :ok

Attaches the debug handler to all relevant events.

detach()

@spec detach() :: :ok

Removes the debug handler.

handle_event(event_name, measurements, metadata, config)

@spec handle_event(list(), map(), map(), term()) :: :ok

Handles a telemetry event.