Skip to content

Add option to suppress _health access logs#1252

Open
e11it wants to merge 1 commit intoAiven-Open:mainfrom
e11it:feat-1197-reduce-logs-noise
Open

Add option to suppress _health access logs#1252
e11it wants to merge 1 commit intoAiven-Open:mainfrom
e11it:feat-1197-reduce-logs-noise

Conversation

@e11it
Copy link
Copy Markdown

@e11it e11it commented Apr 2, 2026

This PR introduces an opt-in suppress_health_access_logs configuration flag to reduce log noise from frequent health probes.

When enabled, access logs for /_health are suppressed in both:

  • Schema Registry (Uvicorn access logs)
  • REST Proxy (aiohttp access logs)

Default behavior is unchanged (suppress_health_access_logs = false) to preserve backward compatibility.

Why

This addresses excessive log noise from health checks and aligns with the request in Issue #1197.

Included changes

  • Added suppress_health_access_logs to config (env-supported via KARAPACE_SUPPRESS_HEALTH_ACCESS_LOGS)
  • Added shared access-log skip logic
  • Wired suppression into both HTTP stacks
  • Added unit tests for config and logging behavior
  • Updated docs and example config

@e11it e11it requested a review from a team as a code owner April 2, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant