Skip to content

config: Add OTEL setup for NextJS #2418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

config: Add OTEL setup for NextJS #2418

wants to merge 2 commits into from

Conversation

blarghmatey
Copy link
Member

What are the relevant tickets?

N/A

Description (What does it do?)

Adds OTEL integration for the NextJS app so that we can capture tracing data for it in Grafana.

How can this be tested?

Run the app and verify that it starts generating trace spans

Additional Context

We have OTel tracing enabled in the Django layer but not yet in the NextJS. Adding it to the frontend will help provide more end-to-end context of requests throughout our application layers.

@blarghmatey blarghmatey requested a review from Copilot August 5, 2025 15:22
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds OpenTelemetry (OTEL) integration to the NextJS frontend application to enable distributed tracing capabilities, providing better observability alongside the existing Django backend tracing.

  • Integrates Vercel's OTEL package for NextJS instrumentation
  • Adds OTEL initialization to the existing instrumentation setup
  • Includes necessary OpenTelemetry dependencies for comprehensive tracing

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
frontends/main/src/instrumentation.ts Adds OTEL registration with service name configuration
frontends/main/package.json Adds OpenTelemetry and Vercel OTEL dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant