Skip to content

be: put the X-Request-Id MONETA's support asks for into failures, and say how to log each call - #82

Merged
landsman merged 7 commits into
mainfrom
be/request-id-and-logging
Nov 20, 2026
Merged

landsman merged 7 commits into
mainfrom
be/request-id-and-logging

Conversation

@landsman

@landsman landsman commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

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:

GET /api/v4/vip/aisp/my/accounts?size=100&page=0 (X-Request-Id 7f3c…) answered 503

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.md now 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.level in Spring Boot, a logger in Play's logback.xml (the Play projects now carry play-logback, as every Play application does), quarkus.log.category in Quarkus.

make build passes.

… 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.
Comment thread .docs/usage.md Resolved
Comment thread .docs/usage.md Resolved
@landsman
landsman merged commit 898b9c8 into main Nov 20, 2026
7 checks passed
@landsman
landsman deleted the be/request-id-and-logging branch November 20, 2026 09:46
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