Title: Provide hook to add metadata · Issue #142 · getsentry/sentry-javascript · GitHub
Open Graph Title: Provide hook to add metadata · Issue #142 · getsentry/sentry-javascript
X Title: Provide hook to add metadata · Issue #142 · getsentry/sentry-javascript
Description: It would be really nice if raven-js provided a mechanism for devs to add their own metadata (i.e. via the extra option). Right now, in order to do this, I have to take charge of catching my app's errors myself and then manually calling c...
Open Graph Description: It would be really nice if raven-js provided a mechanism for devs to add their own metadata (i.e. via the extra option). Right now, in order to do this, I have to take charge of catching my app's e...
X Description: It would be really nice if raven-js provided a mechanism for devs to add their own metadata (i.e. via the extra option). Right now, in order to do this, I have to take charge of catching my app'...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/142
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Provide hook to add metadata","articleBody":"It would be really nice if raven-js provided a mechanism for devs to add their own metadata (i.e. via the `extra` option). Right now, in order to do this, I have to take charge of catching my app's errors myself and then manually calling `captureException`:\n\n``` js\nRaven.captureException(error, { extra: { /* metadata*/ } });\n```\n\nI would prefer a way where I can still take advantage of Raven's default `window.onerror` handling. Maybe there is one that I'm not aware of?\n\nSo I guess the question becomes: Is there a way to add `extra` data to every sent exception without having to catch the exceptions myself?\n","author":{"url":"https://github.com/padolsey","@type":"Person","name":"padolsey"},"datePublished":"2013-10-16T17:30:35Z","url":"https://github.com/getsentry/sentry-javascript/issues/142"}
| 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:5453b0e0-1bdb-4125-4cbe-77805b8b2e88 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEF2:2A756:323D2B:444964:6B0436D2 |
| html-safe-nonce | 1709f0a18eb86acb49d8bc0f5f7928ce84b59779c75b262356f3cccd3d95db43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUYyOjJBNzU2OjMyM0QyQjo0NDQ5NjQ6NkIwNDM2RDIiLCJ2aXNpdG9yX2lkIjoiODc3MjYyMDUxNjYyOTY5MDA2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 73734aa06ac65eb7b00aed6fdfa5c459fb734f420b209d2b93df1864a50ffe0d |
| hovercard-subject-tag | issue:21096113 |
| 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/142/issue_layout |
| twitter:image | https://opengraph.githubassets.com/945c6dca70d3fa4cafdf97e7f2a6b9a4c024b7fad260bcf0265a6318e8bac183/getsentry/sentry-javascript/issues/142 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/945c6dca70d3fa4cafdf97e7f2a6b9a4c024b7fad260bcf0265a6318e8bac183/getsentry/sentry-javascript/issues/142 |
| og:image:alt | It would be really nice if raven-js provided a mechanism for devs to add their own metadata (i.e. via the extra option). Right now, in order to do this, I have to take charge of catching my app's e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | padolsey |
| 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