Title: Integrations not called with BrowserClient · Issue #3271 · getsentry/sentry-javascript · GitHub
Open Graph Title: Integrations not called with BrowserClient · Issue #3271 · getsentry/sentry-javascript
X Title: Integrations not called with BrowserClient · Issue #3271 · getsentry/sentry-javascript
Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Provide a link to the aff...
Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3271
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Integrations not called with BrowserClient","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [ ] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n- [x] `@sentry/browser`\r\n\r\n### Version:\r\n\r\n```\r\n6.2.0\r\n```\r\n\r\n## Description\r\n\r\nWe've changed our sentry browser client from using the global instance to use a separate instance with 'BrowserClient`and `Hub` and integrations don't seem to be called anymore, since the Breadcrumbs, userAgent, etc data is not being sent as before. We use the default integrations. This is our init code:\r\n\r\n```javascript\r\nimport * as Sentry from \"@sentry/browser\";\r\n\r\nconst client = new Sentry.BrowserClient({\r\n dsn: \"%%dsn%%\",\r\n release: '%%library_version%%',\r\n dist: '%%build_number%%',\r\n environment: process.env.NODE_ENV,\r\n integrations: [...Sentry.defaultIntegrations]\r\n});\r\nconst hub = new Sentry.Hub(client);\r\n\r\nconsole.log(hub.getClient()._integrations) // We can see integration instances\r\n```\r\n\r\nOur previous init was the following and integrations were working with no problem:\r\n\r\n```javascript\r\nimport * as Sentry from \"@sentry/browser\";\r\n\r\nSentry.init({\r\n dsn: \"%%dsn%%\",\r\n release: '%%library_version%%',\r\n dist: '%%build_number%%',\r\n environment: process.env.NODE_ENV\r\n});\r\n```\r\n","author":{"url":"https://github.com/s-yagues","@type":"Person","name":"s-yagues"},"datePublished":"2021-02-19T12:34:01Z","url":"https://github.com/getsentry/sentry-javascript/issues/3271"}
| 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:255eb659-300c-d4ae-7a20-af92e3fb064a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E80:21DE8C:3CF70:51800:6B042819 |
| html-safe-nonce | e5d14379520a21171fb25638edab4637808d9c2f25609c700e24918cfdc04c4b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTgwOjIxREU4QzozQ0Y3MDo1MTgwMDo2QjA0MjgxOSIsInZpc2l0b3JfaWQiOiIzODE1NzM2NjQ2NDk5MDUxNTQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 767645fa0003c9447d4b3cf4607da6768b6b48a73bc66b73032ae37948bbede9 |
| hovercard-subject-tag | issue:811987141 |
| 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/3271/issue_layout |
| twitter:image | https://opengraph.githubassets.com/efb924f9f8b3aafb93f368630da1f5fb10189845dc296f1c51c4b3c592fb9a47/getsentry/sentry-javascript/issues/3271 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/efb924f9f8b3aafb93f368630da1f5fb10189845dc296f1c51c4b3c592fb9a47/getsentry/sentry-javascript/issues/3271 |
| og:image:alt | Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | s-yagues |
| 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