Skip to content

Sentry messes up NextJS Opentelemtry #13127

@Meemaw

Description

@Meemaw

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

8.20.0

Framework Version

14.2.5

Link to Sentry event

No response

Reproduction Example/SDK Setup

In instrumentation.ts

import { registerOTel } from "@vercel/otel"
import * as Sentry from "@sentry/nextjs"

export function register() {
  Sentry.init({})
  registerOTel("my-service")
}

Steps to Reproduce

  1. Add Sentry.init({}) to the next instrumentation hook
  2. Otel integration stops working

Expected Result

Sentry shouldn't mess with otel instrumentation from nextjs.

Actual Result

Traces are not produced/send to collector

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: nextjsIssues related to the Sentry Nextjs SDK

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions