Raxol.Core.Events.TelemetryAdapter (Raxol v2.0.1)

View Source

Adapter to migrate from EventManager to :telemetry.

This module provides a compatibility layer to gradually migrate the event system from the custom EventManager to the standard :telemetry library.

Summary

Functions

Dispatches an event using telemetry.

Unregisters a handler using telemetry.

Functions

dispatch(event_name, data \\ %{})

Dispatches an event using telemetry.

Converts EventManager dispatch calls to telemetry execute calls.

register_handler(handler_id, event_pattern, handler_fun, config \\ [])

Registers a handler using telemetry.

Converts EventManager handler registration to telemetry attach.

unregister_handler(handler_id)

Unregisters a handler using telemetry.