feat(http-backend): add injectable structured request logging hook - #371
Closed
melanindebbie wants to merge 1 commit into
Closed
feat(http-backend): add injectable structured request logging hook#371melanindebbie wants to merge 1 commit into
melanindebbie wants to merge 1 commit into
Conversation
createHttpWalletBackend now accepts an optional logHook that is invoked once
per completed request with { method, url, status, durationMs }, so consumers
can parse, filter, and route on structured fields instead of free-form output.
Backwards-compatible: omitting the hook leaves logging disabled. Adds a test
suite covering success, failure, the 404 lookup edge case, and the no-hook
path, and documents the new interface in the README.
|
@melanindebbie is attempting to deploy a commit to the david's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks for the contribution — but contributor PRs may only change files inside This PR touches file(s) outside that folder:
Please open a new PR with your changes scoped to Questions? Ask in the Telegram group. |
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.
This PR adds an injectable structured request logging hook to
http-backend, allowing consumers to capture HTTP request/response details in a structured format.Previously this was targeting
main— retargeted todevper the project's contribution guidelines.Closes #247
🤖 Generated with Codebuff
Co-Authored-By: Codebuff noreply@codebuff.com