Skip to content

Implement OpenTelemetry Tracing for TypeScript Service #40

@davideme

Description

@davideme

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-http or 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions