Telemetry
View SourceLiveView currently exposes the following telemetry events:
[:phoenix, :live_view, :mount, :start]- Dispatched by aPhoenix.LiveViewimmediately beforemount/3is invoked.Measurement:
%{system_time: System.monotonic_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, params: unsigned_params | :not_mounted_at_router, session: map, uri: String.t() | nil }
[:phoenix, :live_view, :mount, :stop]- Dispatched by aPhoenix.LiveViewwhen themount/3callback completes successfully.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, params: unsigned_params | :not_mounted_at_router, session: map, uri: String.t() | nil }
[:phoenix, :live_view, :mount, :exception]- Dispatched by aPhoenix.LiveViewwhen an exception is raised in themount/3callback.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, params: unsigned_params | :not_mounted_at_router, session: map, uri: String.t() | nil }
[:phoenix, :live_view, :handle_params, :start]- Dispatched by aPhoenix.LiveViewimmediately beforehandle_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 thehandle_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 an exception is raised in thehandle_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 beforehandle_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 thehandle_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 thehandle_event/3callback.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, event: String.t(), params: unsigned_params }
[:phoenix, :live_view, :render, :start]- Dispatched by aPhoenix.LiveViewimmediately beforerender/1is invoked.Measurement:
%{system_time: System.monotonic_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, force?: boolean, changed?: boolean }
[:phoenix, :live_view, :render, :stop]- Dispatched by aPhoenix.LiveViewwhen therender/1callback completes successfully.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, force?: boolean, changed?: boolean }
[:phoenix, :live_view, :render, :exception]- Dispatched by aPhoenix.LiveViewwhen an exception is raised in therender/1callback.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, force?: boolean, changed?: boolean }
[:phoenix, :live_component, :update, :start]- Dispatched by aPhoenix.LiveComponentimmediately beforeupdate/2or aupdate_many/1is invoked.In the case of
update/2it might dispatch one event for multiple calls.Measurement:
%{system_time: System.monotonic_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, component: atom, assigns_sockets: [{map(), Phoenix.LiveView.Socket.t}] }
[:phoenix, :live_component, :update, :stop]- Dispatched by aPhoenix.LiveComponentwhen theupdate/2or aupdate_many/1callback completes successfully.In the case of
update/2it might dispatch one event for multiple calls. Thesocketsmetadata contain the updated sockets.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, component: atom, assigns_sockets: [{map(), Phoenix.LiveView.Socket.t}], sockets: [Phoenix.LiveView.Socket.t] }
[:phoenix, :live_component, :update, :exception]- Dispatched by aPhoenix.LiveComponentwhen an exception is raised in theupdate/2or aupdate_many/1callback.In the case of
update/2it might dispatch one event for multiple calls.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, component: atom, assigns_sockets: [{map(), Phoenix.LiveView.Socket.t}] }
[:phoenix, :live_component, :handle_event, :start]- Dispatched by aPhoenix.LiveComponentimmediately beforehandle_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 thehandle_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 thehandle_event/3callback.Measurement:
%{duration: native_time}Metadata:
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, component: atom, event: String.t(), params: unsigned_params }