Title: SDK internal errors being raised as events in Sentry. · Issue #9760 · getsentry/sentry-javascript · GitHub
Open Graph Title: SDK internal errors being raised as events in Sentry. · Issue #9760 · getsentry/sentry-javascript
X Title: SDK internal errors being raised as events in Sentry. · Issue #9760 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/9760
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SDK internal errors being raised as events in Sentry.","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/react\n\n### SDK Version\n\n7.75.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```\r\nSentry.init({\r\n environment: env,\r\n dsn: \"...\",\r\n integrations: [\r\n new Sentry.BrowserTracing({\r\n tracePropagationTargets: [...],\r\n }),\r\n new Sentry.Replay(),\r\n ],\r\n\r\n tracesSampleRate: 1.0, \r\n replaysSessionSampleRate: 0.001, \r\n replaysOnErrorSampleRate: 1.0, \r\n allowUrls: [...],\r\n ignoreErrors: [....],\r\n});\r\n```\n\n### Steps to Reproduce\n\nThe SDK is reaching the replay buffer limit ([source code](https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay/src/eventBuffer/error.ts#L6)) when [recording session replays](https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay/src/util/addEvent.ts#L78). I was not able to reproduce it on my own account.\r\n\r\nThis is raising an event sent by the SDK to the project configured in the SDK initialisation:\r\n```\r\nError\r\nEvent buffer exceeded maximum size of 20000000.\r\n```\r\n\r\nThe current workaround for affected users is to filter these events with ignoreErrors:\r\n```\r\nSentry.init({\r\n dsn: \"...\",\r\n ignoreErrors: [\"Event buffer exceeded maximum size\"],\r\n ...\r\n});\r\n```\r\n\r\nOriginally reported [here](https://sentry.zendesk.com/agent/tickets/108739)\n\n### Expected Result\n\nThe SDK should gracefully drop the event exceeding buffer and not raise an exception captured by the unhandled rejection handler. \n\n### Actual Result\n\nAn event is sent to the Sentry project as in the screenshot (not adding link due to privacy):\r\n\r\n","author":{"url":"https://github.com/rodolfoBee","@type":"Person","name":"rodolfoBee"},"datePublished":"2023-12-06T09:55:36Z","url":"https://github.com/getsentry/sentry-javascript/issues/9760"}
| 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:27e71c6f-f064-ff4a-30a6-30f6a2681063 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA2E:E0F3D:516BBC:6CE183:6B04A33D |
| html-safe-nonce | 7baf2929ff76c043a10bcc6f33d8435387d98a807feb92524c0692ce5c392e93 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTJFOkUwRjNEOjUxNkJCQzo2Q0UxODM6NkIwNEEzM0QiLCJ2aXNpdG9yX2lkIjoiMjMxNzU2MjY1MzkxMDAxNjgyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aae602f2647b0b05269040a2b5c763bab3e480e2eb3868a8c08a75ff8dac6dcd |
| hovercard-subject-tag | issue:2028166578 |
| 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/9760/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fdfcd5be6798c69f690978b0d54fb802fdcf99ef33b4d755e105d81cc50b7217/getsentry/sentry-javascript/issues/9760 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fdfcd5be6798c69f690978b0d54fb802fdcf99ef33b4d755e105d81cc50b7217/getsentry/sentry-javascript/issues/9760 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rodolfoBee |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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