Skip to content

Export consoleLoggingIntegration from vercel edge sdk #16229

Description

@AbhiPrasad

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

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions