Title: captureException logging non-errors as level:info · Issue #1864 · getsentry/sentry-javascript · GitHub
Open Graph Title: captureException logging non-errors as level:info · Issue #1864 · getsentry/sentry-javascript
X Title: captureException logging non-errors as level:info · Issue #1864 · 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/1864
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"captureException logging non-errors as level:info","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\r\n## Package + Version\r\n\r\n- [x] `@sentry/browser`\r\n- [ ] `@sentry/node`\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [ ] other:\r\n\r\n### Version: \r\n\r\n```\r\n4.5.1\r\n```\r\n\r\n## Description\r\nHi 👋, we just migrated from Raven and suddenly all of these 'info' level logs turned up in our production logs. This is was we've found 👇 \r\n\r\nCalling `Sentry.captureException` with anything other than an [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) causes the event to log as level:info in Sentry.\r\n\r\nThis includes [`DOMException`](https://developer.mozilla.org/en-US/docs/Web/API/DOMException) even though `new DOMException() instanceof Error` is true.\r\n\r\nThe following all log an info:\r\n- `Sentry.captureException(new DOMException('message', 'name'));`\r\n- `Sentry.captureException(null);`\r\n- `Sentry.captureException('A string');`\r\n\r\nThese aren't things we are creating and logging directly, rather, we have instances where libraries we are using reject promises with things that are not always errors.\r\n","author":{"url":"https://github.com/maikthomas","@type":"Person","name":"maikthomas"},"datePublished":"2019-02-04T14:59:35Z","url":"https://github.com/getsentry/sentry-javascript/issues/1864"}
| 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:e7c9d641-b535-f1f6-ae42-599aa9b0b0f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B52C:48A69:1BCAB:26C38:6B048CF2 |
| html-safe-nonce | 4345a1a26cebc7dbc3014fa8af6bc4a1d83940d2085f4cf7324ae4091a5227a9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTJDOjQ4QTY5OjFCQ0FCOjI2QzM4OjZCMDQ4Q0YyIiwidmlzaXRvcl9pZCI6IjM3NzY0OTkxNzM5MDI1NTIzMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ce40784b84a8d933c6c6f3fa0fe9eb55d026840c923c7579de8787c6ac35b1f3 |
| hovercard-subject-tag | issue:406368350 |
| 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/1864/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e9761a4f77edd49a99f2ff89b494e3d60e9adeee4305d5bc199d9453b0cc358/getsentry/sentry-javascript/issues/1864 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e9761a4f77edd49a99f2ff89b494e3d60e9adeee4305d5bc199d9453b0cc358/getsentry/sentry-javascript/issues/1864 |
| 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 | maikthomas |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b297275a74a2c9a35898175c9477837c635d4f579277ebff3b2d6ebd012e247 |
| 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 | b51ce57ca6d4565a42856fc1c9897077c794597f |
| 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