Setup Sentry for LiveView error tracking
This commit is contained in:
@@ -55,6 +55,8 @@ defmodule MusicLibraryWeb do
|
|||||||
use Phoenix.LiveView,
|
use Phoenix.LiveView,
|
||||||
layout: {MusicLibraryWeb.Layouts, :app}
|
layout: {MusicLibraryWeb.Layouts, :app}
|
||||||
|
|
||||||
|
on_mount Sentry.LiveViewHook
|
||||||
|
|
||||||
unquote(html_helpers())
|
unquote(html_helpers())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ defmodule MusicLibraryWeb.Endpoint do
|
|||||||
]
|
]
|
||||||
|
|
||||||
socket "/live", Phoenix.LiveView.Socket,
|
socket "/live", Phoenix.LiveView.Socket,
|
||||||
websocket: [connect_info: [session: @session_options]],
|
websocket: [connect_info: [:peer_data, :uri, :user_agent, session: @session_options]],
|
||||||
longpoll: [connect_info: [session: @session_options]]
|
longpoll: [connect_info: [:peer_data, :uri, :user_agent, session: @session_options]]
|
||||||
|
|
||||||
# Serve at "/" the static files from "priv/static" directory.
|
# Serve at "/" the static files from "priv/static" directory.
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user