logs
All checks were successful
CI/CD Pipeline / build (push) Successful in 31s

This commit is contained in:
2026-03-09 15:25:43 -06:00
parent 9a0203dac4
commit 3fd64aa2f8
3 changed files with 7 additions and 19 deletions

View File

@@ -4,14 +4,6 @@ defmodule ElixirAi.Application do
@impl true
def start(_type, _args) do
# Attach telemetry handler to filter health check logs
:telemetry.attach(
"filter-health-logs",
[:phoenix, :endpoint, :stop],
&filter_health_logs/4,
nil
)
children = [
ElixirAiWeb.Telemetry,
ElixirAi.Repo,
@@ -47,14 +39,4 @@ defmodule ElixirAi.Application do
ElixirAiWeb.Endpoint.config_change(changed, removed)
:ok
end
# Filter health check requests from telemetry logs
defp filter_health_logs(_event, _measurements, %{conn: %{request_path: "/health"}}, _config) do
:ok
end
defp filter_health_logs(event, measurements, metadata, config) do
# Forward to default Phoenix logger
:telemetry.execute(event, measurements, metadata)
end
end

View File

@@ -38,6 +38,7 @@ defmodule ElixirAiWeb.Endpoint do
cookie_key: "request_logger"
plug Plug.RequestId
plug ElixirAiWeb.Plugs.HealthCheckLogger
plug Plug.Telemetry, event_prefix: [:phoenix, :endpoint]
plug Plug.Parsers,