chore: reduce verbose healthcheck warnings in serverless mode #25
+21
−7
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.
Summary
This PR reduces unnecessary warning messages during healthcheck failures when running in serverless environments where no monitoring agent is expected.
Changes
MW_TARGETis not configured, indicating an agent is expectedmuzzle-generation:2.17.0-alpha-SNAPSHOT→2.17.0-alphamuzzle-check:2.17.0-alpha-SNAPSHOT→2.17.0-alphaopentelemetryJavaagent:2.17.0-SNAPSHOT→2.17.0opentelemetryJavaagentAlpha:2.17.0-alpha-SNAPSHOT→2.17.0-alphaMotivation
In serverless environments, healthcheck failures are expected behavior when no monitoring agent is present. The previous implementation would log warnings even in these expected scenarios, creating unnecessary noise in logs.
Behavior Changes
MW_TARGETis configured but healthcheck still failstruewhen no target is configured and healthcheck fails due to I/O errorsTesting
Fixes: Reduces log verbosity in serverless deployments while maintaining diagnostic capability for configured environments.