This commit is contained in:
2026-03-02 08:40:30 -07:00
parent 2b013f390b
commit 9955a7f90c
39 changed files with 1388 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
defmodule BackendWeb.Plugs.Telemetry do
@behaviour Plug
@impl true
def init(opts), do: Plug.Telemetry.init(opts)
@impl true
def call(%{path_info: ["api", "health"]} = conn, {start_event, stop_event, opts}) do
# Suppress logs for health check endpoint
Plug.Telemetry.call(conn, {start_event, stop_event, Keyword.put(opts, :log, false)})
end
def call(conn, args), do: Plug.Telemetry.call(conn, args)
end