Skip to content

Export consoleLoggingIntegration from vercel edge sdk #16229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AbhiPrasad opened this issue May 7, 2025 · 0 comments · Fixed by #16228
Closed

Export consoleLoggingIntegration from vercel edge sdk #16229

AbhiPrasad opened this issue May 7, 2025 · 0 comments · Fixed by #16228
Assignees

Comments

@AbhiPrasad
Copy link
Member

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant