Repository navigation
be: put the X-Request-Id MONETA's support asks for into failures, and say how to log each call - #82
Merged
Merged
Conversation
… say how to log each call A failure did not carry X-Request-Id; only the DEBUG line had it, and that is off in production. The message now names it, as in "GET /…/accounts?size=100&page=0 (X-Request-Id 7f3c…) answered 503". The DEBUG line was documented for Micronaut only. usage.md says what it holds and how to switch it on per stack, each module README gives its setting, and testing/ checks each setting brings the line into the framework's log.
landsman
commented
Nov 20, 2026
landsman
commented
Nov 20, 2026
landsman
commented
Nov 20, 2026
landsman
commented
Nov 20, 2026
landsman
commented
Nov 20, 2026
landsman
commented
Nov 20, 2026
landsman
commented
Nov 20, 2026
…n movement or balance too
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.
A failure carried no
X-Request-Id, the one thing MONETA's support asks for about a call. Only the DEBUG line had it, and that is off in production. The exception message now names it, with no API change, including a failure found after the answer came, such as a movement or a balance the client cannot read:Only a short printable ASCII id goes in, so a proxy's header cannot put control characters into a message meant to be safe to log.
The DEBUG line itself was documented for Micronaut only.
.docs/usage.mdnow says what it holds and how to switch it on for each stack, and each module README gives its one setting. The testing projects check that the setting really brings the line into the framework's log, and they fail without it:logging.levelin Spring Boot, a logger in Play'slogback.xml(the Play projects now carryplay-logback, as every Play application does),quarkus.log.categoryin Quarkus.make buildpasses.