Title: capturing a message with stack trace using `@sentry/browser` · Issue #1666 · getsentry/sentry-javascript · GitHub
Open Graph Title: capturing a message with stack trace using `@sentry/browser` · Issue #1666 · getsentry/sentry-javascript
X Title: capturing a message with stack trace using `@sentry/browser` · Issue #1666 · 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/1666
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"capturing a message with stack trace using `@sentry/browser`","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`\r\n- [ ] `@sentry/node`\r\n- [x] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [ ] other:\r\n\r\n### Version:\r\n\r\n```\r\nraven-js: 3.26.4\r\n@sentry/browser: 4.1.1\r\n```\r\n\r\n## Description\r\n\r\nI'm switching from `raven-js` to `@sentry/browser`.\r\n\r\nIn raven-js I could do\r\n\r\n```\r\nRaven.captureMessage('whatever', {\r\n stacktrace: true, level: 'warning', extra: extra_info\r\n})\r\n```\r\n\r\nHowever with `@sentry/browser` `captureMessage` only takes a `level` argument. To add `extra` I can use\r\n\r\n```\r\nSentry.captureEvent({\r\n message: 'whatever',\r\n level: 'warning',\r\n extra: extra_info\r\n})\r\n```\r\n\r\n(which is arguably uglier), but the real problem is that there's no way to add `stacktrace: true`, instead the `stacktrace` argument requires an actual stack trace. I tried settings `stacktrace: true` but I got \"Discarded invalid value for parameter 'stacktrace'\".\r\n\r\nIt doesn't seem to be possible to log a message with a stack using `@sentry/browser`.","author":{"url":"https://github.com/samuelcolvin","@type":"Person","name":"samuelcolvin"},"datePublished":"2018-10-22T09:32:27Z","url":"https://github.com/getsentry/sentry-javascript/issues/1666"}
| 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:863b14b9-d8fb-7eaf-9b87-f7da2805d543 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA08:38627B:627307:85A07F:6B0441A4 |
| html-safe-nonce | b7efe7c1600f63864095f5113ffc704c0b82efefef8a7d4624c8c3c10e08b4b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTA4OjM4NjI3Qjo2MjczMDc6ODVBMDdGOjZCMDQ0MUE0IiwidmlzaXRvcl9pZCI6IjI4MDE4OTg5NDMyODQ1Mjc1MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 70eccea09f55aa0d2a1133733be8343e4a2f09f4a45c9388d0d3ee77e6abedb8 |
| hovercard-subject-tag | issue:372452024 |
| 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/1666/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee15acab898df9364eecdc3ac12bb73136f6806282757dde221080e54ca4d1ef/getsentry/sentry-javascript/issues/1666 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee15acab898df9364eecdc3ac12bb73136f6806282757dde221080e54ca4d1ef/getsentry/sentry-javascript/issues/1666 |
| 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 | samuelcolvin |
| 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