Install Error Tracker to track production issues

This commit is contained in:
Claudio Ortolina
2025-01-01 17:11:17 +00:00
parent 8bd7197d18
commit 5cd57fdde4
7 changed files with 26 additions and 1 deletions
+3
View File
@@ -1,5 +1,6 @@
defmodule MusicLibraryWeb.Router do
use MusicLibraryWeb, :router
use ErrorTracker.Web, :router
import MusicLibraryWeb.Auth, only: [require_logged_in: 2, require_api_token: 2]
@@ -72,6 +73,8 @@ defmodule MusicLibraryWeb.Router do
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, []},