Remove Prometheus-based metrics

Never use them
This commit is contained in:
Claudio Ortolina
2025-05-15 16:14:26 +01:00
parent 112e2e455a
commit 0577f72484
6 changed files with 0 additions and 64 deletions
-22
View File
@@ -1,22 +0,0 @@
defmodule MusicLibraryWeb.Telemetry.Plug do
@behaviour Plug
import Plug.Conn
def init(opts) do
Keyword.validate!(opts, [:at])
end
def call(conn, opts) do
at = Keyword.fetch!(opts, :at)
if conn.request_path == at do
conn
|> put_resp_content_type("text/plain")
|> send_resp(200, TelemetryMetricsPrometheus.Core.scrape())
|> halt()
else
conn
end
end
end