PhoenixGenApiTui.Telemetry (phoenix_gen_api_tui v0.1.0)

Copy Markdown View Source

Telemetry events for PhoenixGenApiTui user actions and system events.

Events:

  • [:phoenix_gen_api_tui, :mount, :start|stop|exception] — TUI session lifecycle
  • [:phoenix_gen_api_tui, :refresh, :start|stop] — data refresh
  • [:phoenix_gen_api_tui, :tab_switch, :success] — tab changes

Summary

Functions

Attaches a handler to all PhoenixGenApiTui telemetry events.

Detaches a handler by ID.

Functions

attach_handler(handler_id, function, config \\ %{})

@spec attach_handler(String.t(), function(), map()) :: :ok

Attaches a handler to all PhoenixGenApiTui telemetry events.

detach_handler(handler_id)

@spec detach_handler(String.t()) :: :ok

Detaches a handler by ID.

execute(event, measurements \\ %{}, metadata \\ %{})

@spec execute(atom() | list(), map(), map()) :: :ok

Executes a telemetry event.