How to disable route sentry instrumentation?
Unanswered
Philippine Crocodile posted this in #help-forum
Philippine CrocodileOP
I'm struggling to figure out how to disable the automatic route instrumentation. I've tried setting
But I still see these logs:
Is there a way to disable next creating root spans automatically? Thank you 🙏
NEXT_TELEMETRY_DISABLED=1
, and I've set these options in next.config.ts's withSentryConfig
function from "@sentry/nextjs"
. telemetry: false,
autoInstrumentAppDirectory: false,
autoInstrumentMiddleware: false,
autoInstrumentServerFunctions: false,
But I still see these logs:
Sentry Logger [log]: [Tracing] Starting sampled span
[VERCEL] op: < unknown op >
[VERCEL] name: executing api route (app) /api/inngest/route
[VERCEL] ID: 254876335b352ca5
[VERCEL] parent ID: 8bdbc6d4160b9b2e
[VERCEL] root ID: 8bdbc6d4160b9b2e
[VERCEL] root description: /api/inngest
Is there a way to disable next creating root spans automatically? Thank you 🙏