Stop health check probes filling the request log - #44
Draft
paulcustance-al wants to merge 1 commit into
Draft
paulcustance-al wants to merge 1 commit into
paulcustance-al wants to merge 1 commit into
Conversation
The platform polls /health constantly and every probe was logging a summary line. Those drop to Verbose now. Real requests and failures are untouched.
SummarySummary
CoverageSchoolAccount.Collect.Api - 71.8%
SchoolAccount.Collect.Application - 85.2%
SchoolAccount.Collect.Infrastructure - 20.3%
SchoolAccount.Collect.SharedKernel - 65.7%
|
paulcustance-al
marked this pull request as draft
September 21, 2026 15:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The platform polls /health constantly and every probe was logging a request summary line, which buries everything else in the log stream.
Those drop to Verbose now, so nothing collects them by default but they can be switched back on if the probes themselves need looking at. Real requests and failures are untouched.
The level selection moved out of Program.cs into a named method in MiddlewareExtensions, which also picks up the response status code - the global exception handler deals with most failures before this middleware sees them, so a 500 arrives here with no exception attached and would otherwise be logged as Information.