Implement Request tracing instrumentation
Description
Add tracing spans for API, DB, and RPC operations.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
- Repository scope: Talenttrust/Talenttrust-Backend only
- Keep implementation aligned with existing project architecture and coding standards
Suggested execution
- Fork the repo and create a branch
git checkout -b feature/backend-25-request-tracing-instrumentation
- Implement changes
- Write code in:
src/index.ts and modularized src/* files for add tracing spans for api, db, and rpc operations.
- Write comprehensive tests:
src/**/*.test.ts with integration and unit suites
- Add documentation:
README.md and docs/backend/
- Include NatSpec-style comments where applicable (or equivalent structured doc comments)
- Validate security assumptions and threat scenarios
Test and commit
- Run tests
- Cover edge cases and failure paths
- Include test output and security notes
Example commit message
feat: implement request tracing instrumentation with tests and docs
Guidelines
- Minimum 95 percent test coverage for impacted modules
- Clear documentation with reviewer-focused structure
- Timeframe: 96 hours
Implement Request tracing instrumentation
Description
Add tracing spans for API, DB, and RPC operations.
Requirements and context
Suggested execution
git checkout -b feature/backend-25-request-tracing-instrumentationsrc/index.ts and modularized src/* files for add tracing spans for api, db, and rpc operations.src/**/*.test.ts with integration and unit suitesREADME.md and docs/backend/Test and commit
Example commit message
feat: implement request tracing instrumentation with tests and docsGuidelines