Skip to content

feat(http-backend): add injectable structured request logging hook - #371

Closed
melanindebbie wants to merge 1 commit into
Vellar-Wallet:devfrom
melanindebbie:feat/247-structured-error-logging-dev
Closed

feat(http-backend): add injectable structured request logging hook#371
melanindebbie wants to merge 1 commit into
Vellar-Wallet:devfrom
melanindebbie:feat/247-structured-error-logging-dev

Conversation

@melanindebbie

Copy link
Copy Markdown

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 to dev per the project's contribution guidelines.

Closes #247

🤖 Generated with Codebuff
Co-Authored-By: Codebuff noreply@codebuff.com

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.
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

@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.

@github-actions

Copy link
Copy Markdown

Thanks for the contribution — but contributor PRs may only change files inside contrib/.

This PR touches file(s) outside that folder:

  • README.md
  • src/http-backend.test.ts
  • src/http-backend.ts

Please open a new PR with your changes scoped to contrib/ only, targeting dev. See CONTRIBUTING.md and contrib/README.md. If your assigned issue genuinely needs changes elsewhere, say so on the issue first — don't open a PR outside contrib/.

Questions? Ask in the Telegram group.

@github-actions github-actions Bot closed this Aug 31, 2026
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