查看源代码 遥测
LiveView 当前公开以下 telemetry
事件
[:phoenix, :live_view, :mount, :start]
- 在Phoenix.LiveView
调用mount/3
之前立即派发。度量
%{system_time: System.monotonic_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, params: unsigned_params | :not_mounted_at_router, session: map, uri: String.t() | nil }
[:phoenix, :live_view, :mount, :stop]
- 在Phoenix.LiveView
中mount/3
回调成功完成时派发。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, params: unsigned_params | :not_mounted_at_router, session: map, uri: String.t() | nil }
[:phoenix, :live_view, :mount, :exception]
- 在Phoenix.LiveView
中mount/3
回调中引发异常时派发。度量:
%{duration: native_time}
元数据
%{ 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]
- 在Phoenix.LiveView
调用handle_params/3
之前立即派发。度量
%{system_time: System.monotonic_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, params: unsigned_params, uri: String.t() }
[:phoenix, :live_view, :handle_params, :stop]
- 在Phoenix.LiveView
中handle_params/3
回调成功完成时派发。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, params: unsigned_params, uri: String.t() }
[:phoenix, :live_view, :handle_params, :exception]
- 在Phoenix.LiveView
中handle_params/3
回调中引发异常时派发。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, params: unsigned_params, uri: String.t() }
[:phoenix, :live_view, :handle_event, :start]
- 在Phoenix.LiveView
调用handle_event/3
之前立即派发。度量
%{system_time: System.monotonic_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, event: String.t(), params: unsigned_params }
[:phoenix, :live_view, :handle_event, :stop]
- 在Phoenix.LiveView
中handle_event/3
回调成功完成时派发。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, event: String.t(), params: unsigned_params }
[:phoenix, :live_view, :handle_event, :exception]
- 在Phoenix.LiveView
中handle_event/3
回调中引发异常时派发。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, event: String.t(), params: unsigned_params }
[:phoenix, :live_view, :render, :start]
- 在Phoenix.LiveView
调用render/1
之前立即派发。度量
%{system_time: System.monotonic_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, force?: boolean, changed?: boolean }
[:phoenix, :live_view, :render, :stop]
- 在Phoenix.LiveView
中render/1
回调成功完成时派发。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, force?: boolean, changed?: boolean }
[:phoenix, :live_view, :render, :exception]
- 在Phoenix.LiveView
中render/1
回调中引发异常时派发。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, force?: boolean, changed?: boolean }
[:phoenix, :live_component, :update, :start]
- 在Phoenix.LiveComponent
调用update/2
或update_many/1
之前立即派发。在
update/2
的情况下,它可能会为多个调用派发一个事件。度量
%{system_time: System.monotonic_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, component: atom, assigns_sockets: [{map(), Phoenix.LiveView.Socket.t}] }
[:phoenix, :live_component, :update, :stop]
- 在Phoenix.LiveComponent
中update/2
或update_many/1
回调成功完成时派发。在
update/2
的情况下,它可能会为多个调用派发一个事件。sockets
元数据包含更新的套接字。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, component: atom, assigns_sockets: [{map(), Phoenix.LiveView.Socket.t}], sockets: [Phoenix.LiveView.Socket.t] }
[:phoenix, :live_component, :update, :exception]
- 在Phoenix.LiveComponent
中update/2
或update_many/1
回调中引发异常时派发。在
update/2
的情况下,它可能会为多个调用派发一个事件。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, component: atom, assigns_sockets: [{map(), Phoenix.LiveView.Socket.t}] }
[:phoenix, :live_component, :handle_event, :start]
- 在Phoenix.LiveComponent
调用handle_event/3
之前立即派发。度量
%{system_time: System.monotonic_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, component: atom, event: String.t(), params: unsigned_params }
[:phoenix, :live_component, :handle_event, :stop]
- 在Phoenix.LiveComponent
中handle_event/3
回调成功完成时派发。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, component: atom, event: String.t(), params: unsigned_params }
[:phoenix, :live_component, :handle_event, :exception]
- 在Phoenix.LiveComponent
中handle_event/3
回调中引发异常时派发。度量
%{duration: native_time}
元数据
%{ socket: Phoenix.LiveView.Socket.t, kind: atom, reason: term, component: atom, event: String.t(), params: unsigned_params }