Remove Sentry

Not used, and it has a quite a few outdated dependencies.
This commit is contained in:
Claudio Ortolina
2024-10-14 18:58:10 +01:00
parent 49f5ae30f2
commit 5e7280176f
7 changed files with 5 additions and 32 deletions
-4
View File
@@ -7,10 +7,6 @@ defmodule MusicLibrary.Application do
@impl true
def start(_type, _args) do
:logger.add_handler(:my_sentry_handler, Sentry.LoggerHandler, %{
config: %{metadata: [:file, :line]}
})
children = [
MusicLibraryWeb.Telemetry,
MusicLibrary.Repo,
-2
View File
@@ -55,8 +55,6 @@ defmodule MusicLibraryWeb do
use Phoenix.LiveView,
layout: {MusicLibraryWeb.Layouts, :app}
on_mount Sentry.LiveViewHook
unquote(html_helpers())
end
end
+2 -5
View File
@@ -1,5 +1,4 @@
defmodule MusicLibraryWeb.Endpoint do
use Sentry.PlugCapture
use Phoenix.Endpoint, otp_app: :music_library
# The session will be stored in the cookie and signed,
@@ -13,8 +12,8 @@ defmodule MusicLibraryWeb.Endpoint do
]
socket "/live", Phoenix.LiveView.Socket,
websocket: [connect_info: [:peer_data, :uri, :user_agent, session: @session_options]],
longpoll: [connect_info: [:peer_data, :uri, :user_agent, session: @session_options]]
websocket: [connect_info: [session: @session_options]],
longpoll: [connect_info: [session: @session_options]]
# Serve at "/" the static files from "priv/static" directory.
#
@@ -47,8 +46,6 @@ defmodule MusicLibraryWeb.Endpoint do
pass: ["*/*"],
json_decoder: Phoenix.json_library()
plug Sentry.PlugContext
plug Plug.MethodOverride
plug Plug.Head
plug Plug.Session, @session_options