Skip to content

feat(gateway): log upstream network traces - #40

Closed
gptphew[bot] wants to merge 2 commits into
mainfrom
fix/log-upstream-network-traces
Closed

gptphew[bot] wants to merge 2 commits into
mainfrom
fix/log-upstream-network-traces

Conversation

@gptphew

@gptphew gptphew Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Problem

Production logs show the selected provider, but they do not prove which upstream host receives the request.

Change

Log sanitized JSON events before and after each outbound request. Each event includes the existing trace ID, final upstream hostname, method, retry attempt, status, and duration. Payloads, paths, query strings, headers, and credentials are excluded.

Verification

  • npm run build
  • npx jest tests/unit/src/handlers/retryHandler.test.ts --runInBand (2 tests passed)
  • npx prettier --check src/handlers/retryHandler.ts src/handlers/handlerUtils.ts
  • broad test:gateway currently hits unrelated baseline TypeScript errors in Bytez and pre-request validator tests

Co-authored-by: Arnav Surve <arnav@anything.com>
@vercel

vercel Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
gateway Error Error Sep 16, 2026 3:39am UTC

Request Review

@gptphew
gptphew Bot requested a review from arnavsurve September 16, 2026 03:38
Co-authored-by: Arnav Surve <arnav@anything.com>
@arnavsurve
arnavsurve marked this pull request as ready for review September 16, 2026 03:39
@arnavsurve arnavsurve closed this Sep 16, 2026

This branch had an error being deployed

1 failed deployment
Preview — d6be6cae Deployed Sep 16, 2026 by vercel[bot]
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