Description
Add OTel traces propagating to Soroban RPC and DB calls (where supported).
Requirements and context
- Sampling configurable.
- Document exporter env (OTLP).
Suggested execution
- Fork the repository and create a branch (example below).
- Implement changes in StreamPay-Backend (TypeScript / Express per
package.json).
- Keep the service secure, tested, and documented; prefer small, reviewable PRs.
git checkout -b feature/opentelemetry-tracing
Implementation targets
src/telemetry/tracing.ts.
- Wrap fetch/HTTP clients.
Tests and validation
-
Local dev: console exporter optional.
-
Run npm test and npm run lint in StreamPay-Backend.
-
Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
- Target minimum 95% test coverage on new or changed backend code (or justify gaps).
- Clear documentation (OpenAPI / README / inline docs as specified).
- Timeframe: 96 hours from assignment.
Example commit message
feat(backend): OpenTelemetry tracing
Description
Add OTel traces propagating to Soroban RPC and DB calls (where supported).
Requirements and context
Suggested execution
package.json).Implementation targets
src/telemetry/tracing.ts.Tests and validation
Local dev: console exporter optional.
Run
npm testandnpm run lintinStreamPay-Backend.Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
Example commit message