-
| Has anyone had any luck using the  I have my  import * as Sentry from "@sentry/nextjs";
export async function register() {
  if (process.env.NEXT_RUNTIME === "nodejs") {
    Sentry.init({
      dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
      tracesSampleRate: 1.0,
      integrations: [
        Sentry.captureConsoleIntegration({ levels: ["warn", "error"] }),
      ],
    });
  }
  if (process.env.NEXT_RUNTIME === "edge") {
    Sentry.init({
      dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
      tracesSampleRate: 1.0,
      integrations: [
        Sentry.captureConsoleIntegration({ levels: ["warn", "error"] }),
      ],
    });
  }
}And I'm getting this error in my server log: It seems the integration isn't supported by the edge runtime? Has anyone been able to get this working? | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
| @mtucker I'd open this as a feature request! Seems reasonable to add to the edge runtime. | 
Beta Was this translation helpful? Give feedback.
-
| Thanks for the response @AbhiPrasad! I actually found PR https://github.com/getsentry/sentry-javascript/pull/12308/files where core  integrations were added to  | 
Beta Was this translation helpful? Give feedback.
Thanks for the response @AbhiPrasad! I actually found PR https://github.com/getsentry/sentry-javascript/pull/12308/files where core integrations were added to
vercel-edge. I just needed to update our@sentry/nextjspackage version! 😬