Title: Browser tags not sent anymore with BrowserClient initialization · Issue #2678 · getsentry/sentry-javascript · GitHub
Open Graph Title: Browser tags not sent anymore with BrowserClient initialization · Issue #2678 · getsentry/sentry-javascript
X Title: Browser tags not sent anymore with BrowserClient initialization · Issue #2678 · 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/2678
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Browser tags not sent anymore with BrowserClient initialization","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- [ 5.15.0] `@sentry/browser`\r\n- [ 5.15.0] `@sentry/hub`\r\n\r\n## Description\r\n\r\nOn Sentry we don't get browser tags (browser, os and device data) on events since the update of @sentry/browser to version `5.15.0`. It works with version 5.14.2.\r\nIn the request payload, the `request` key doesn't exist anymore, so useragent isn't sent.\r\nSentry is initialized creating manually `new BrowserClient` & `new Hub`. Initializating Sentry with `Sentry.init` **fixes the problem**, but we intend to have multiple initialization on the page so this is not a solution.\r\n\r\n```js\r\nconst integrations: Integration[] = [...defaultIntegrations, new ExtraErrorData(), new Dedupe()];\r\nconst environment = guessEnvironment();\r\nif (environment !== ENV.PRODUCTION) {\r\n integrations.push(new Debug());\r\n}\r\nconst client = new BrowserClient({\r\n dsn: '******,\r\n release: guessRelease(),\r\n environment,\r\n integrations,\r\n enabled: true,\r\n});\r\nhub = new Hub(client);\r\nmakeMain(hub);\r\n```\r\n","author":{"url":"https://github.com/Mattgic","@type":"Person","name":"Mattgic"},"datePublished":"2020-06-17T07:48:49Z","url":"https://github.com/getsentry/sentry-javascript/issues/2678"}
| 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:71ca8b35-da8a-39ae-4806-d9c1ec28b91a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF68:C74C:544473:72C82F:6B043FE4 |
| html-safe-nonce | 64896c034e3eca11030d4fa5c00f3109278c728d92585c6bec0677e947a852ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjY4OkM3NEM6NTQ0NDczOjcyQzgyRjo2QjA0M0ZFNCIsInZpc2l0b3JfaWQiOiI4NTAwMjEzNjIwMzM1MTk4MTgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 672b68134e1be87dd5c01b1dafead3b47248dcd0ffed060365754a4e8ae06767 |
| hovercard-subject-tag | issue:640220251 |
| 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/2678/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3f8b63b01cea0920ba059f509445f1bbe7d66b7cb3b7170397962528d2f579f/getsentry/sentry-javascript/issues/2678 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3f8b63b01cea0920ba059f509445f1bbe7d66b7cb3b7170397962528d2f579f/getsentry/sentry-javascript/issues/2678 |
| 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 | Mattgic |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| 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