Skip to content

feat(obs): structured logging with request-id propagation#165

Merged
greatest0fallt1me merged 2 commits into
Creditra:mainfrom
devxsameer:feat/structured-logging-request-id
Mar 31, 2026
Merged

feat(obs): structured logging with request-id propagation#165
greatest0fallt1me merged 2 commits into
Creditra:mainfrom
devxsameer:feat/structured-logging-request-id

Conversation

@devxsameer
Copy link
Copy Markdown
Contributor

Closes #100

Summary

Added structured JSON logging with request correlation via x-request-id.

Changes

  • Introduced request logging middleware
  • Implemented request ID generation + propagation (request → response → logs)
  • Added centralized logger (pino)
  • Logged request lifecycle with duration
  • Sanitized wallet addresses to avoid PII leakage

Notes

  • Logs are disabled in test environment
  • No sensitive data is exposed
  • Improves traceability across credit and risk flows

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Mar 29, 2026

@devxsameer Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@devxsameer
Copy link
Copy Markdown
Contributor Author

@greatest0fallt1me hey boss, please review i have done it .

@greatest0fallt1me greatest0fallt1me merged commit 6032b5e into Creditra:main Mar 31, 2026
0 of 7 checks passed
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.

Structured JSON logging and request correlation IDs

2 participants