Title: Type 'ProfilingIntegration' is not assignable to type 'Integration' · Issue #10852 · getsentry/sentry-javascript · GitHub
Open Graph Title: Type 'ProfilingIntegration' is not assignable to type 'Integration' · Issue #10852 · getsentry/sentry-javascript
X Title: Type 'ProfilingIntegration' is not assignable to type 'Integration' · Issue #10852 · 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/10852
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type 'ProfilingIntegration' is not assignable to type 'Integration'","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/node\n\n### SDK Version\n\n7.103.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```\r\nSentry.init({\r\n dsn,\r\n environment,\r\n tracesSampleRate,\r\n profilesSampleRate: 1.0,\r\n enabled: !config.isDev && !config.isTest,\r\n maxValueLength: 0,\r\n integrations: [\r\n new Sentry.Integrations.Http({ tracing: true }),\r\n new Sentry.Integrations.Express({\r\n app: expressApp,\r\n }),\r\n new ProfilingIntegration(),\r\n new Sentry.Integrations.GraphQL(),\r\n new Sentry.Integrations.Prisma({ client: prismaClient }),\r\n new Sentry.Integrations.Postgres()\r\n ]\r\n })\r\n```\n\n### Steps to Reproduce\n\nThis error is happening within a typescript project. It seems the `@sentry/profiling-node` package depends on an older version of `@sentry/node` or `@sentry/types`.\n\n### Expected Result\n\nNo compile error\n\n### Actual Result\n\n\r\nI get this error:\r\n```\r\nType 'ProfilingIntegration' is not assignable to type 'Integration'.\r\n Types of property 'setupOnce' are incompatible.\r\n Type '(addGlobalEventProcessor: (callback: import(\".../@sentry/types/types/eventprocessor\").EventProcessor) => void, getCurrentHub: () => import(\".../node_modules/@sentry/types/types/hub\").Hub) => void' is not assignable to type '(addGlobalEventProcessor: (callback: import(\".../node_modules/@sentry/node/node_modules/@sentry/types/types/eventprocessor\").EventProcessor) => void, getCurrentHub: () => import(\".../node_modules/@sentry/node/node_modules/@sentry/types/types/hub\").Hub) => void'.\r\n Types of parameters 'addGlobalEventProcessor' and 'addGlobalEventProcessor' are incompatible.\r\n Types of parameters 'callback' and 'callback' are incompatible.\r\n Type 'import(\".../node_modules/@sentry/types/types/eventprocessor\").EventProcessor' is not assignable to type 'import(\".../node_modules/@sentry/node/node_modules/@sentry/types/types/eventprocessor\").EventProcessor'.\r\n Types of parameters 'hint' and 'hint' are incompatible.\r\n Type 'import(\".../node_modules/@sentry/node/node_modules/@sentry/types/types/event\").EventHint' is not assignable to type 'import(\".../node_modules/@sentry/types/types/event\").EventHint'.\r\n Types of property 'captureContext' are incompatible.\r\n Type 'import(\".../node_modules/@sentry/node/node_modules/@sentry/types/types/scope\").CaptureContext | undefined' is not assignable to type 'import(\".../node_modules/@sentry/types/types/scope\").CaptureContext | undefined'.\r\n Type 'Scope' is not assignable to type 'CaptureContext | undefined'.\r\n Type 'import(\".../node_modules/@sentry/node/node_modules/@sentry/types/types/scope\").Scope' is not assignable to type 'import(\".../node_modules/@sentry/types/types/scope\").Scope'.\r\n Types of property 'update' are incompatible.\r\n Type '(captureContext?: import(\".../node_modules/@sentry/node/node_modules/@sentry/types/types/scope\").CaptureContext | undefined) => import(\".../node_modules/@sentry/node/node_modules/@sentry/types/types/scope\").Scope' is not assignable to type '(captureContext?: import(\".../node_modules/@sentry/types/types/scope\").CaptureContext | undefined) => import(\".../node_modules/@sentry/types/types/scope\").Scope'.\r\n Types of parameters 'captureContext' and 'captureContext' are incompatible.\r\n Type 'import(\".../node_modules/@sentry/types/types/scope\").CaptureContext | undefined' is not assignable to type 'import(\".../node_modules/@sentry/node/node_modules/@sentry/types/types/scope\").CaptureContext | undefined'.\r\n Type 'Scope' is not assignable to type 'CaptureContext | undefined'.\r\n Type 'Scope' is missing the following properties from type 'Scope': setClient, getClient, getScopeData, captureException, and 2 more.ts(2322)\r\n```","author":{"url":"https://github.com/srujun","@type":"Person","name":"srujun"},"datePublished":"2024-02-29T02:07:44Z","url":"https://github.com/getsentry/sentry-javascript/issues/10852"}
| 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:0e336857-8a93-d684-9870-6581a60db178 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C540:32E761:18D637:21728C:6B043003 |
| html-safe-nonce | d8bf02bc3ea24a3606f0917d42a7ff502392fbda0eebbb1dfa476321c7d651d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTQwOjMyRTc2MToxOEQ2Mzc6MjE3MjhDOjZCMDQzMDAzIiwidmlzaXRvcl9pZCI6IjUyODMxNzIzODI3ODQzNjg2NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3dc4fd8221ccec5326df252a47208f57f17038238404965ce943be782d1445a7 |
| hovercard-subject-tag | issue:2160211593 |
| 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/10852/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a96023d9e87cd8ce005e05c22c1e126f74651e476c8698f0fa47fe85151c6783/getsentry/sentry-javascript/issues/10852 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a96023d9e87cd8ce005e05c22c1e126f74651e476c8698f0fa47fe85151c6783/getsentry/sentry-javascript/issues/10852 |
| 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 | srujun |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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