Skip to content

Propagate OpenTelemetry Trace IDs Across Frontend and Backend #1702

Description

@RUKAYAT-CODER

Overview

OpenTelemetry is initialised in both frontend and backend but trace IDs are not propagated across HTTP calls. This means a single user action cannot be traced across services in Jaeger/Zipkin.

Specifications

Tasks:

  • Add W3C raceparent header injection in the frontend API client (lib/api/client.ts)
  • Configure backend OTEL SDK to extract incoming raceparents
  • Verify end-to-end trace in local Jaeger

Impacted Files:

  • FrontEnd/my-app/lib/api/client.tsn- BackEnd/src/config/opentelemetry.config.tsn

Acceptance Criteria:

  • Single user action produces a linked trace spanning frontend ? backend

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions