Skip to content

Export consoleLoggingIntegration from vercel edge sdk #16229

New issue

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

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

Already on GitHub? # to your account

Closed
AbhiPrasad opened this issue May 7, 2025 · 1 comment · Fixed by #16228
Closed

Export consoleLoggingIntegration from vercel edge sdk #16229

AbhiPrasad opened this issue May 7, 2025 · 1 comment · 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)

Copy link
Contributor

A PR closing this issue has just been released 🚀

This issue was referenced by PR #16228, which was included in the 9.18.0 release.

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

Successfully merging a pull request may close this issue.

1 participant