Closed
Description
@AbhiPrasad, I updated to 9.16.1 and tried to add
integrations: [
Sentry.consoleLoggingIntegration({ levels: ["log", "error", "warn"] }),
],
to sentry.edge.config.ts
when using it with Nextjs.
That results in this:
TypeError: An error occurred while loading instrumentation hook: g.consoleLoggingIntegration is not a function
at 1900 (.next/server/edge-instrumentation.js:15:12650)
at Function.t (.next/server/edge-runtime-webpack.js:1:495)
at async Module.a (.next/server/edge-instrumentation.js:15:14229)
at async u (.next/server/src/middleware.js:1:50632)
at async ts (.next/server/src/middleware.js:13:32177)
I guess console logging doesn't work in the edge runtime?
Originally posted by @alexanderjulmer in #15916 (reply in thread)