Skip to content

Request logger: correlation ID propagation #143

@1nonlypiece

Description

@1nonlypiece

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

  1. Fork the repository and create a branch: git checkout -b feature/correlation-id
  2. Implement changes in Disciplr-backend only (no frontend / contracts in this issue)

Implement

  • requestLogger.ts

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

  1. Run tests with coverage if configured; cover edge cases listed in requirements
  2. Paste summarized test output in the PR
  3. 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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendDisciplr API serverloggingLogging / observability

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions