Description
Accept X-Request-Id or generate; propagate.
Requirements and context
-
Tests
-
Must be secure, tested, and aligned with existing Express + TypeScript patterns
-
Should be observable (logging/metrics where appropriate) without leaking PII
Suggested execution
- Fork the repository and create a branch:
git checkout -b feature/correlation-id
- Implement changes in
Disciplr-backend only (no frontend / contracts in this issue)
Implement
Tests and documentation
- Extend or add Jest /
tsx --test suites as appropriate
- Run:
npm test
- Update inline comments or existing docs under
Disciplr-backend/docs only if the feature needs it (no unsolicited new markdown files)
Test and commit
- Run tests with coverage if configured; cover edge cases listed in requirements
- Paste summarized test output in the PR
- Note any security or data-handling implications
Example commit message
feat(logging): request correlation ids
Guidelines
| Item |
Target |
| Test coverage |
≥ 95% on new/changed backend code where feasible |
| API contracts |
Stable JSON shapes; document breaking changes in PR |
| Timeframe |
96 hours from assignment |
Description
Accept
X-Request-Idor generate; propagate.Requirements and context
Tests
Must be secure, tested, and aligned with existing Express + TypeScript patterns
Should be observable (logging/metrics where appropriate) without leaking PII
Suggested execution
git checkout -b feature/correlation-idDisciplr-backendonly (no frontend / contracts in this issue)Implement
requestLogger.tsTests and documentation
tsx --testsuites as appropriatenpm testDisciplr-backend/docsonly if the feature needs it (no unsolicited new markdown files)Test and commit
Example commit message
Guidelines