Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Sentry: Enable LiveView hook (closes #158)
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Ceolin committed Jul 1, 2024
1 parent de1d528 commit d49a8bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ defmodule ZoonkWeb.Endpoint do
]

socket "/live", Phoenix.LiveView.Socket,
websocket: [connect_info: [:uri, session: @session_options]],
longpoll: [connect_info: [:uri, session: @session_options]]
websocket: [connect_info: [:peer_data, :uri, :user_agent, session: @session_options]],
longpoll: [connect_info: [:peer_data, :uri, :user_agent, session: @session_options]]

# Serve at "/" the static files from "priv/static" directory.
#
Expand Down
1 change: 1 addition & 0 deletions lib/zoonk_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ defmodule ZoonkWeb do

on_mount ZoonkWeb.Flash
on_mount ZoonkWeb.Plugs.ActivePage
on_mount Sentry.LiveViewHook

unquote(html_helpers())
end
Expand Down

0 comments on commit d49a8bc

Please sign in to comment.