Title: Support for Logs in Next.js Edge Runtime · Issue #16151 · getsentry/sentry-javascript · GitHub
Open Graph Title: Support for Logs in Next.js Edge Runtime · Issue #16151 · getsentry/sentry-javascript
X Title: Support for Logs in Next.js Edge Runtime · Issue #16151 · getsentry/sentry-javascript
Description: Hey team Sentry. Promising product evolution for sure, we are eager to try to integrating our logs with our error reporting. We've been added to the pilot, upgraded to @sentry/nextjs@9.14.0 and @sentry/node@9.14.0 and added import * as S...
Open Graph Description: Hey team Sentry. Promising product evolution for sure, we are eager to try to integrating our logs with our error reporting. We've been added to the pilot, upgraded to @sentry/nextjs@9.14.0 and @se...
X Description: Hey team Sentry. Promising product evolution for sure, we are eager to try to integrating our logs with our error reporting. We've been added to the pilot, upgraded to @sentry/nextjs@9.14.0 and...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16151
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for Logs in Next.js Edge Runtime","articleBody":"Hey team Sentry. Promising product evolution for sure, we are eager to try to integrating our logs with our error reporting. We've been added to the pilot, upgraded to `@sentry/nextjs@9.14.0` and `@sentry/node@9.14.0` and added `import * as Sentry from '@sentry/nextjs'` to our central logging lib.\r\n\r\nNow when we start the Next.js (15.2.3) frontend, we get an error `Export logger doesn't exist in target module`. I've traced this down to an import of Sentry.logger in our `middleware.ts`, where we log each incoming request. I'm slightly puzzled, as I assumed this code is only used server-side, but it looks like it's somehow imported into the clientside bundle at least in development.\r\n\r\nAnything I should be trying differently? Here's a minimal repro: https://github.com/stefnnn/next-turbo-middleware\r\n\r\n_Originally posted by @stefnnn in https://github.com/getsentry/sentry-javascript/discussions/15916#discussioncomment-12944312_","author":{"url":"https://github.com/AbhiPrasad","@type":"Person","name":"AbhiPrasad"},"datePublished":"2025-04-28T17:29:45Z","url":"https://github.com/getsentry/sentry-javascript/issues/16151"}
| 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:d19d180c-0dca-4ca8-41f0-bbab46244c06 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D39A:1F93A2:77F14:A43E3:6B0725DB |
| html-safe-nonce | bac2c3d270df896e5d25070985fb765f16f3381ad7720337aedfa6b8d6651934 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzlBOjFGOTNBMjo3N0YxNDpBNDNFMzo2QjA3MjVEQiIsInZpc2l0b3JfaWQiOiIyMDIyMDMwMjg3ODk0NDIzMDAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b89d49172833cac6a2a82dd91d119caef48ddd2b724e9b4474e4463b5a72f128 |
| hovercard-subject-tag | issue:3025646956 |
| 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/16151/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ab468a6b87b1c81dcf0c435ed4915f5f1c4ff50f774d85ad2942efeb620566e/getsentry/sentry-javascript/issues/16151 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ab468a6b87b1c81dcf0c435ed4915f5f1c4ff50f774d85ad2942efeb620566e/getsentry/sentry-javascript/issues/16151 |
| og:image:alt | Hey team Sentry. Promising product evolution for sure, we are eager to try to integrating our logs with our error reporting. We've been added to the pilot, upgraded to @sentry/nextjs@9.14.0 and @se... |
| 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 | 5a20fe9aa5e45c6df9328a5ec3f167a7805856126d8bf72d810541ca01962ef9 |
| 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 | 6ce961d9a663a99bc4bcab9fd6ac5cca54bd6fcc |
| 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