Title: Export `consoleLoggingIntegration` from vercel edge sdk · Issue #16229 · getsentry/sentry-javascript · GitHub
Open Graph Title: Export `consoleLoggingIntegration` from vercel edge sdk · Issue #16229 · getsentry/sentry-javascript
X Title: Export `consoleLoggingIntegration` from vercel edge sdk · Issue #16229 · getsentry/sentry-javascript
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 oc...
Open Graph 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...
X Description: @AbhiPrasad, I updated to 9.16.1 and tried to add integrations: [ Sentry.consoleLoggingIntegration({ levels: ["log", "error", "warn"] }), ], to sentry.edge.config.ts w...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16229
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Export `consoleLoggingIntegration` from vercel edge sdk","articleBody":"@AbhiPrasad, I updated to 9.16.1 and tried to add \r\n\r\n```\r\n integrations: [\r\n Sentry.consoleLoggingIntegration({ levels: [\"log\", \"error\", \"warn\"] }),\r\n ],\r\n``` \r\n\r\nto `sentry.edge.config.ts` when using it with Nextjs. \r\n\r\nThat results in this:\r\n\r\n```\r\nTypeError: An error occurred while loading instrumentation hook: g.consoleLoggingIntegration is not a function\r\n at 1900 (.next/server/edge-instrumentation.js:15:12650)\r\n at Function.t (.next/server/edge-runtime-webpack.js:1:495)\r\n at async Module.a (.next/server/edge-instrumentation.js:15:14229)\r\n at async u (.next/server/src/middleware.js:1:50632)\r\n at async ts (.next/server/src/middleware.js:13:32177)\r\n```\r\n\r\nI guess console logging doesn't work in the edge runtime?\r\n\r\n_Originally posted by @alexanderjulmer in https://github.com/getsentry/sentry-javascript/discussions/15916#discussioncomment-13067000_","author":{"url":"https://github.com/AbhiPrasad","@type":"Person","name":"AbhiPrasad"},"datePublished":"2025-05-07T19:28:20Z","url":"https://github.com/getsentry/sentry-javascript/issues/16229"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d39cfa41-3741-8e5e-9b71-e958b24d52c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2C6:EB18A:33D09B:451679:6B0751B6 |
| html-safe-nonce | ecc8cb31cc4d6295af9ba5cade1d8960a509331eca2f34545055c01338286c69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkM2OkVCMThBOjMzRDA5Qjo0NTE2Nzk6NkIwNzUxQjYiLCJ2aXNpdG9yX2lkIjoiNDE5NjY3OTYxMjYzMTU2ODgyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f72a94bf561e70e9a52474bbb53ea3c99b94706ff47b45476409114d6d653d1d |
| hovercard-subject-tag | issue:3046964138 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/16229/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d62b727371173a432885aacef31fd1d3a5757ee3e4324ced69fb9d70d73d08e1/getsentry/sentry-javascript/issues/16229 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d62b727371173a432885aacef31fd1d3a5757ee3e4324ced69fb9d70d73d08e1/getsentry/sentry-javascript/issues/16229 |
| og:image:alt | @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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbhiPrasad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 663b1a69a41309856ffd9403fa5b764f6c0f78a39a0a8f75fb2c205c96a947be |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | effa2c0a160a75bd95d9ffcc6320197d7aea0d83 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width