Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Backend] Standardize X-Request-ID header propagation across Express middlewares and error responses

Aperta
#1,494 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

@Chinko21 ci sta già lavorando.

Dal 27/9/2026.

  • #1560 di @Chinko21 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

backend drips-wave good-first-issue observability Stellar Wave

Overview

Distributed debugging requires tracing a request from client to server logs. Currently, incoming X-Request-ID headers are partially attached in some routes but omitted in error handlers.

Problem

  • When an API error occurs, client cannot report their request ID to support engineers because error responses omit X-Request-ID.

Proposed Changes

  1. Add an early middleware in backend/src/app.ts to assign or preserve req.id = req.headers['x-request-id'] || crypto.randomUUID().
  2. Ensure res.setHeader('X-Request-ID', req.id).
  3. Include requestId in error payloads returned by api-error.ts.

Acceptance Criteria

  • Every response includes X-Request-ID header.
  • Error responses include requestId property in JSON body.
  • Winston logs automatically append requestId.
Lingua principale
TypeScript
Stelle
18
Fork
250
Merge medio
5g 6h
PR unite (30g)
82

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LabsCrypt/flowfi

Tutte le issue di LabsCrypt/flowfi

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.