Title: Directly instantiated Hub+Client don't use integrations/send integration data · Issue #1764 · getsentry/sentry-javascript · GitHub
Open Graph Title: Directly instantiated Hub+Client don't use integrations/send integration data · Issue #1764 · getsentry/sentry-javascript
X Title: Directly instantiated Hub+Client don't use integrations/send integration data · Issue #1764 · 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 Package + Version @sentry...
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/1764
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Directly instantiated Hub+Client don't use integrations/send integration data","articleBody":"- [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\r\n## Package + Version\r\n\r\n- [x] `@sentry/browser` - 4.3.4\r\n- [ ] `@sentry/node` - N/A\r\n- [ ] `raven-js` - N/A\r\n- [ ] `raven-node` _(raven for node)_ - N/A\r\n- [ ] other: - N/A\r\n\r\n### Version:\r\n\r\n```\r\n4.3.4\r\n```\r\n\r\n## Description\r\n\r\nWhen directly instantiating a Client and Hub following the instructions in https://docs.sentry.io/platforms/javascript/advance-settings/, the events reported do not show (in the web UI) any of the default integration data. For example, **there are no breadcrumbs and no user-agent information**.\r\n\r\nSpecifically, reporting events like this:\r\n\r\n```js\r\nimport { BrowserClient, Hub } from '@sentry/browser';\r\n\r\nlet sentry = new Hub(new BrowserClient({ dsn: '...' }));\r\nsentry.captureException(...);\r\n```\r\n\r\n...produces events that in the web UI that have the basic exception info, but no breadcrumbs or user-agent info.\r\n\r\nOn the other hand, using the same DSN and reporting the same exception, but configured like this:\r\n\r\n```js\r\nimport * as Sentry from '@sentry/browser';\r\n\r\nSentry.init({ dsn: '...' });\r\nSentry.captureException(...);\r\n```\r\n\r\n...all the integration data is there.\r\n\r\nAdding the `debug: true` parameter to the configuration in both cases shows that the custom Hub+Client do not print anything to the console about integrations being used, while the second (global) case does print the default list of integrations.\r\n\r\nI also tried importing `defaultIntegrations` and passing `integrations: defaultIntegrations` when instantiating the `BrowserClient`, but it didn't change anything.\r\n\r\nAny pointers would be greatly appreciated!\r\n\r\n","author":{"url":"https://github.com/felixc","@type":"Person","name":"felixc"},"datePublished":"2018-11-23T14:53:19Z","url":"https://github.com/getsentry/sentry-javascript/issues/1764"}
| 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:fb4f30b7-af96-5c1c-e012-55dc0c802699 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB0A:38627B:197358:223665:6B042FCE |
| html-safe-nonce | b00fe7e19ec6360b19da6d12ca42b8a52b1bfe5e7f845a7c99e763646ed637ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjBBOjM4NjI3QjoxOTczNTg6MjIzNjY1OjZCMDQyRkNFIiwidmlzaXRvcl9pZCI6Ijg4MTcxMTYyNzkwMzIwMDA0NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 79db6723ec9dd524584e268006cb4389f58dd0eed73e5c07ac983486215199ab |
| hovercard-subject-tag | issue:383851269 |
| 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/1764/issue_layout |
| twitter:image | https://opengraph.githubassets.com/073ef5029670cd2357c895dac8b90398db144b8449becc8d9a481f4ca7d24781/getsentry/sentry-javascript/issues/1764 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/073ef5029670cd2357c895dac8b90398db144b8449becc8d9a481f4ca7d24781/getsentry/sentry-javascript/issues/1764 |
| 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 | felixc |
| 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