Title: If a user callback `beforeAddRecordingEvent` throws, don't report SDK internal error · Issue #8542 · getsentry/sentry-javascript · GitHub
Open Graph Title: If a user callback `beforeAddRecordingEvent` throws, don't report SDK internal error · Issue #8542 · getsentry/sentry-javascript
X Title: If a user callback `beforeAddRecordingEvent` throws, don't report SDK internal error · Issue #8542 · getsentry/sentry-javascript
Description: The try block calling the user code: sentry-javascript/packages/replay/src/util/addEvent.ts Line 51 in 2b4121f ? replayOptions.beforeAddRecordingEvent(event) Leads to the catch block that records internal SDK error: sentry-javascript/pac...
Open Graph Description: The try block calling the user code: sentry-javascript/packages/replay/src/util/addEvent.ts Line 51 in 2b4121f ? replayOptions.beforeAddRecordingEvent(event) Leads to the catch block that records i...
X Description: The try block calling the user code: sentry-javascript/packages/replay/src/util/addEvent.ts Line 51 in 2b4121f ? replayOptions.beforeAddRecordingEvent(event) Leads to the catch block that records i...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8542
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"If a user callback `beforeAddRecordingEvent` throws, don't report SDK internal error","articleBody":"The try block calling the user code:\r\n\r\nhttps://github.com/getsentry/sentry-javascript/blob/2b4121fad0e04724619de62d656e6323b8289f1f/packages/replay/src/util/addEvent.ts#L51\r\n\r\nLeads to the catch block that records internal SDK error:\r\nhttps://github.com/getsentry/sentry-javascript/blob/2b4121fad0e04724619de62d656e6323b8289f1f/packages/replay/src/util/addEvent.ts#L68\r\n\r\nThis can make debugging a high number of internal sdk errors \r\n\r\nSome ideas:\r\nWe could add the invocation to a different try/catch block. Drop the event in case of an error.\r\nAlternatively we could record a breadcrumb:\r\n\r\nhttps://github.com/getsentry/sentry-dotnet/blob/2bee53c4a2ae9bcc72a7f3f72f9675b064849cfb/src/Sentry/SentryClient.cs#L352-L375","author":{"url":"https://github.com/bruno-garcia","@type":"Person","name":"bruno-garcia"},"datePublished":"2023-07-14T17:17:30Z","url":"https://github.com/getsentry/sentry-javascript/issues/8542"}
| 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:545cc49d-5953-d681-4ca8-261f88970b8a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9208:2528FA:52A9EE:6E0F98:6B04C0ED |
| html-safe-nonce | 136917f2fa2368ff069124d7e06ee490445a1e85641e1929b2bd47eaefb014a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjA4OjI1MjhGQTo1MkE5RUU6NkUwRjk4OjZCMDRDMEVEIiwidmlzaXRvcl9pZCI6IjQwNjQ1MDk0MTkwNzQ4NDkwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f36e730de9108b08aacc921f656aeba4bc9358c3803231ff72a4283ed9a68e5e |
| hovercard-subject-tag | issue:1805214830 |
| 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/8542/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c5c01514dbb805e5c9b7f236d059064fa4f05a7ec28b17a5ff3344a9556a978/getsentry/sentry-javascript/issues/8542 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c5c01514dbb805e5c9b7f236d059064fa4f05a7ec28b17a5ff3344a9556a978/getsentry/sentry-javascript/issues/8542 |
| og:image:alt | The try block calling the user code: sentry-javascript/packages/replay/src/util/addEvent.ts Line 51 in 2b4121f ? replayOptions.beforeAddRecordingEvent(event) Leads to the catch block that records i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bruno-garcia |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| 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