Skip to content

ui-server: Allow filtering out healthcheck endpoints from HTTP access logs #4198

Open

Description

Is your feature request related to a problem?

When running ui-server in orchestrated environments (such as Kubernetes, Nomad..), frequent liveness and readiness probes generate continuous log entries for healthcheck endpoints (e.g., /healthz or /api/v1/system-info).
Currently, ui-server only provides the global hideLogs (TEMPORAL_HIDE_LOGS) option, which disables all Echo HTTP access logs entirely. To retain visibility into standard API/UI traffic without flooding our log aggregator with noisy healthcheck entries, we need a way to selectively exclude specific paths from access logging.

Describe the solution you'd like

Add a configuration option to ui-server (via YAML config and environment variables) to skip access logging for healthcheck requests using Echo's built-in Skipper support in middleware.LoggerWithConfig.
In the Echo server setup (server/server.go), replace the default logger middleware when enabled with:

e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{ Skipper: skipHealthCheckLogging, }))

This could support skipping logs based on a dedicated healthcheck header (e.g., X-Temporal-UI-Health-Check: readiness or liveness configured).

func skipHealthCheckLogging(c echo.Context) bool { if !cfg.HideHealthcheckLogs { return false } return c.Request().Header.Get("X-Temporal-UI-Health-Check") != "" }

and in the config provide something like
hideHealthcheckLogs: true # or TEMPORAL_HIDE_HEALTHCHECK_LOGS=true

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions