Description
Verify request IDs propagate to logs and error responses consistently.
Requirements and context
- Ensure IDs are unguessable enough for correlation (UUID/etc.).
- No PII in IDs.
Suggested execution
- Fork the repo and create a branch:
git checkout -b test/request-id-middleware
- Work in Callora-Backend (TypeScript / Express).
Primary paths
src/middleware/requestId.ts, src/middleware/logging.ts
- Run
npm run lint, npm run typecheck, and npm test.
Deliverables
Test and commit
- Add or extend unit and/or integration tests (
src/**/*.test.ts, tests/integration/**).
- Paste summarized test output in the PR; call out security or data-integrity notes.
Example commit message
test(observability): requestId propagation
Guidelines
- Tests should cover new behavior and important edge cases.
- Keep changes focused; follow existing patterns in the codebase.
- Timeframe: 96 hours from assignment unless agreed otherwise.
Description
Verify request IDs propagate to logs and error responses consistently.
Requirements and context
Suggested execution
git checkout -b test/request-id-middlewarePrimary paths
src/middleware/requestId.ts,src/middleware/logging.tsnpm run lint,npm run typecheck, andnpm test.Deliverables
Test and commit
src/**/*.test.ts,tests/integration/**).Example commit message
Guidelines