Telemetry
LiveView currently exposes the following telemetry events:
[:phoenix, :live_view, :mount, :start]- Dispatched by aPhoenix.LiveViewimmediately beforec:mount/3is invoked.Measurement:
%{system_time: System.monotonic_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, params: unsigned_params | :not_mounted_at_router, session: map }
[:phoenix, :live_view, :mount, :stop]- Dispatched by aPhoenix.LiveViewwhen thec:mount/3callback completes successfully.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, params: unsigned_params | :not_mounted_at_router, session: map }
[:phoenix, :live_view, :mount, :exception]- Dispatched by aPhoenix.LiveViewwhen an exception is raised in thec:mount/3callback.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, params: unsigned_params | :not_mounted_at_router, session: map }
[:phoenix, :live_view, :handle_params, :start]- Dispatched by aPhoenix.LiveViewimmediately beforec:handle_params/3is invoked.Measurement:
%{system_time: System.monotonic_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, params: unsigned_params, uri: String.t() }
[:phoenix, :live_view, :handle_params, :stop]- Dispatched by aPhoenix.LiveViewwhen thec:handle_params/3callback completes successfully.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, params: unsigned_params, uri: String.t() }
[:phoenix, :live_view, :handle_params, :exception]- Dispatched by aPhoenix.LiveViewwhen the when an exception is raised in thec:handle_params/3callback.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, params: unsigned_params, uri: String.t() }
[:phoenix, :live_view, :handle_event, :start]- Dispatched by aPhoenix.LiveViewimmediately beforec:handle_event/3is invoked.Measurement:
%{system_time: System.monotonic_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, event: String.t(), params: unsigned_params }
[:phoenix, :live_view, :handle_event, :stop]- Dispatched by aPhoenix.LiveViewwhen thec:handle_event/3callback completes successfully.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, event: String.t(), params: unsigned_params }
[:phoenix, :live_view, :handle_event, :exception]- Dispatched by aPhoenix.LiveViewwhen an exception is raised in thec:handle_event/3callback.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, event: String.t(), params: unsigned_params }
[:phoenix, :live_component, :handle_event, :start]- Dispatched by aPhoenix.LiveComponentimmediately beforec:handle_event/3is invoked.Measurement:
%{system_time: System.monotonic_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, component: atom, event: String.t(), params: unsigned_params }
[:phoenix, :live_component, :handle_event, :stop]- Dispatched by aPhoenix.LiveComponentwhen thec:handle_event/3callback completes successfully.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, component: atom, event: String.t(), params: unsigned_params }
[:phoenix, :live_component, :handle_event, :exception]- Dispatched by aPhoenix.LiveComponentwhen an exception is raised in thec:handle_event/3callback.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, component: atom, event: String.t(), params: unsigned_params }