Remove ErrorTracker

Doesn't work with recent LiveView releases, and seems to be maintained
very slowly despite incoming PRs to fix the issues.
This commit is contained in:
Claudio Ortolina
2025-10-03 10:11:56 +03:00
parent f5bd7d0774
commit 57dfd3d33d
18 changed files with 4 additions and 101 deletions
-1
View File
@@ -18,7 +18,6 @@ defmodule MusicLibrary.Application do
children = [
MusicLibrary.Vault,
MusicLibrary.Repo,
MusicLibrary.ErrorRepo,
MusicLibrary.BackgroundRepo,
MusicLibraryWeb.Telemetry,
{Oban, Application.fetch_env!(:music_library, Oban)},
-5
View File
@@ -1,5 +0,0 @@
defmodule MusicLibrary.ErrorRepo do
use Ecto.Repo,
otp_app: :music_library,
adapter: Ecto.Adapters.SQLite3
end
@@ -98,15 +98,6 @@
<.icon name="hero-chart-bar" class="h-4 w-4 mr-2" aria-hidden="true" data-slot="icon" />
{gettext("Live Dashboard")}
</.dropdown_link>
<.dropdown_link href={~p"/dev/errors"}>
<.icon
name="hero-exclamation-circle"
class="h-4 w-4 mr-2"
aria-hidden="true"
data-slot="icon"
/>
{gettext("Errors")}
</.dropdown_link>
<.dropdown_link href={~p"/dev/oban"}>
<.icon name="hero-cog" class="h-4 w-4 mr-2" aria-hidden="true" data-slot="icon" />
{gettext("Oban")}
+1 -5
View File
@@ -89,19 +89,15 @@ defmodule MusicLibraryWeb.Router do
end
if Application.compile_env(:music_library, :monitoring_routes) do
use ErrorTracker.Web, :router
import Phoenix.LiveDashboard.Router
scope "/dev" do
pipe_through [:browser, :logged_in]
error_tracker_dashboard("/errors")
live_dashboard "/dashboard",
metrics: MusicLibraryWeb.Telemetry,
metrics_history: {MusicLibraryWeb.Telemetry.Storage, :metrics_history, []},
ecto_repos: [MusicLibrary.Repo, MusicLibrary.BackgroundRepo, MusicLibrary.ErrorRepo]
ecto_repos: [MusicLibrary.Repo, MusicLibrary.BackgroundRepo]
oban_dashboard "/oban"
end