Open Meemaw opened 1 month ago
Hey @Meemaw thanks for reaching out!
For a custom otel setup some additional steps are required: https://docs.sentry.io/platforms/javascript/guides/nextjs/tracing/instrumentation/opentelemetry/#using-a-custom-opentelemetry-setup. We're currently updating this part of the docs, so you'll likely find a new version in the upcoming days.
In short, you'll need to add skipOpenTelemetrySetup: true
to your init
call and make sure some required components like SentryContextManager
and SentryPropagator
are instantiated.
Would you mind sharing how you want to use Sentry with this setup?
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
Steps to Reproduce
Sentry.init({})
to the next instrumentation hookExpected Result
Sentry shouldn't mess with otel instrumentation from nextjs.
Actual Result
Traces are not produced/send to collector