Jido.Telemetry (Jido v1.2.0)
View SourceHandles telemetry events for the Jido application.
This module provides a centralized way to handle and report telemetry events throughout the application. It implements common telemetry patterns and provides a consistent interface for event handling.
Summary
Functions
Returns a specification to start this module under a supervisor.
Handles telemetry events.
Executes a function while emitting telemetry events for its execution.
Starts the telemetry handler.
Types
@type event_name() :: [atom(), ...]
Supported telemetry event names.
@type measurements() :: %{ optional(:system_time) => integer(), optional(:duration) => integer(), required(atom()) => term() }
Telemetry measurements map.
@type metadata() :: %{ optional(:error) => term(), optional(:result) => term(), required(atom()) => term() }
Telemetry metadata map.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec handle_event(event_name(), measurements(), metadata(), config :: term()) :: :ok
Handles telemetry events.
Executes a function while emitting telemetry events for its execution.
Starts the telemetry handler.