-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
As per the decision in ADR-007, the TypeScript service needs to implement distributed tracing using OpenTelemetry.
Tasks:
- Install required OpenTelemetry dependencies (e.g.,
@opentelemetry/api,@opentelemetry/sdk-node,@opentelemetry/auto-instrumentations-node, an appropriate OTLP exporter like@opentelemetry/exporter-trace-otlp-httpor gRPC). - Configure the OpenTelemetry Node SDK early in the application bootstrap process.
- Enable automatic instrumentation for relevant libraries (Express, gRPC, Prisma, Mongoose, HTTP client, etc.).
- Ensure trace context is propagated correctly.
- Configure an exporter to send traces to a backend (even if just console exporter initially for verification).
This will align the codebase with the observability strategy defined in the ADR.