Title: Prisma Integration Incompatible with 5.0.0 · Issue #8532 · getsentry/sentry-javascript · GitHub
Open Graph Title: Prisma Integration Incompatible with 5.0.0 · Issue #8532 · getsentry/sentry-javascript
X Title: Prisma Integration Incompatible with 5.0.0 · Issue #8532 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8532
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Prisma Integration Incompatible with 5.0.0","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSelf-hosted/on-premise\r\n\r\n### Which SDK are you using?\r\n\r\n@sentry/serverless\r\n\r\n### SDK Version\r\n\r\n7.58.1\r\n\r\n### Framework Version\r\n\r\n_No response_\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n```javascript\r\nimport * as Sentry from '@sentry/serverless';\r\nimport { PrismaClient } from '@prisma/client';\r\n\r\nconst prisma = new PrismaClient();\r\nSentry.AWSLambda.init({\r\n dsn: process.env.SENTRY_DSN,\r\n environment: process.env.STAGE,\r\n tracesSampleRate: 1.0,\r\n release: process.env.VERSION,\r\n integrations: [new Sentry.AWSLambda.Integrations.Prisma({ client: prisma })],\r\n});\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Use @vendia/serverless-express\r\n2. Use serverless-offline\r\n3. yarn start\r\n4. Navigate to any route\r\n\r\n### Expected Result\r\n\r\nRoute would load as previous.\r\n\r\n### Actual Result\r\n\r\n```\r\n✖ Unhandled exception in handler 'api'.\r\n✖ TypeError: Converting circular structure to JSON\r\n --> starting at object with constructor 'zr'\r\n | property 'client' -> object with constructor 't'\r\n --- property '_fetcher' closes the circle\r\n at JSON.stringify (\u003canonymous>)\r\n at new Prisma (/Volumes/Projects/xxxxx-api/node_modules/@sentry-internal/tracing/cjs/node/integrations/prisma.js:51:93)\r\n at init (/Volumes/Projects/xxxxx-api/.build/helper/sentry.js:39:24)\r\n at configureExpress (/Volumes/Projects/xxxxx-api/.build/helper/sentry.js:51:22)\r\n at Object.\u003canonymous> (/Volumes/Projects/xxxxx-api/.build/api/app.js:28:31)\r\n at Module._compile (node:internal/modules/cjs/loader:1196:14)\r\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)\r\n at Module.load (node:internal/modules/cjs/loader:1074:32)\r\n at Function.Module._load (node:internal/modules/cjs/loader:909:12)\r\n at Module.require (node:internal/modules/cjs/loader:1098:19)\r\n✖ Converting circular structure to JSON\r\n --> starting at object with constructor 'zr'\r\n | property 'client' -> object with constructor 't'\r\n --- property '_fetcher' closes the circle\r\n```","author":{"url":"https://github.com/mwillbanks","@type":"Person","name":"mwillbanks"},"datePublished":"2023-07-13T21:54:21Z","url":"https://github.com/getsentry/sentry-javascript/issues/8532"}
| 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:624e2c5b-6548-edf3-fc3d-0e6cce29d077 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACC8:160386:4484AA:5E8AB4:6B049EF2 |
| html-safe-nonce | b17e5d35f827efcc97e056ac51706b07f3028f40e6a5f9a5549eeb7e99cbf11d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0M4OjE2MDM4Njo0NDg0QUE6NUU4QUI0OjZCMDQ5RUYyIiwidmlzaXRvcl9pZCI6IjYzODYzMTU4MjUyOTUyNzUzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf2b392f12f00a051874bcdb668e1532382d9bd1e2509f4bedcc6b2987a67829 |
| hovercard-subject-tag | issue:1803813917 |
| 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/8532/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97fa55c5c2e70aad985a0f2a553977e34cfecc012d25fd071d378345bd2b53c8/getsentry/sentry-javascript/issues/8532 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97fa55c5c2e70aad985a0f2a553977e34cfecc012d25fd071d378345bd2b53c8/getsentry/sentry-javascript/issues/8532 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mwillbanks |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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