Title: Allow to pass custom compression implementation to replay · Issue #7755 · getsentry/sentry-javascript · GitHub
Open Graph Title: Allow to pass custom compression implementation to replay · Issue #7755 · getsentry/sentry-javascript
X Title: Allow to pass custom compression implementation to replay · Issue #7755 · getsentry/sentry-javascript
Description: Since #6739 is sadly not really possible due to browser constraints, another way to allow people to opt-out of the worker behavior while still having compression could be to allow passing in a custom compression implementation. We could ...
Open Graph Description: Since #6739 is sadly not really possible due to browser constraints, another way to allow people to opt-out of the worker behavior while still having compression could be to allow passing in a cust...
X Description: Since #6739 is sadly not really possible due to browser constraints, another way to allow people to opt-out of the worker behavior while still having compression could be to allow passing in a cust...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7755
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow to pass custom compression implementation to replay","articleBody":"Since https://github.com/getsentry/sentry-javascript/issues/6739 is sadly not really possible due to browser constraints, another way to allow people to opt-out of the worker behavior while still having compression could be to allow passing in a custom compression implementation.\r\n\r\nWe could provide this implementation ourselves, but let it be tree shaken away if not used. This is how this could look like:\r\n\r\n```js\r\nimport * as Sentry from '@sentry/browser';\r\n\r\nconst replay = new Replay({\r\n compression: Sentry.getReplayEventCompressionCallback()\r\n});\r\n```\r\n\r\nWhere `getReplayEventCompressionCallback` would return a function that uses pako.","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2023-04-05T11:52:24Z","url":"https://github.com/getsentry/sentry-javascript/issues/7755"}
| 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:5040e225-3b6d-c350-c701-a27afe99bbb6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED22:1F98:23B8B70:2F71E47:6B043F77 |
| html-safe-nonce | a2b5757e17005bfad851e73bf4508c2c4e98449f26442d4d676da5cc196f4a61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDIyOjFGOTg6MjNCOEI3MDoyRjcxRTQ3OjZCMDQzRjc3IiwidmlzaXRvcl9pZCI6IjU3MzE4ODg1MjQwOTgyODk1MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 62337f494284c0d890afc48272bd9c4bdffc90ef007de41a4ac94512562abea3 |
| hovercard-subject-tag | issue:1655477796 |
| 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/7755/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f58bc7527a66c9daf401195f89b5169819d1ce3069f97d4b07541000488d03a2/getsentry/sentry-javascript/issues/7755 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f58bc7527a66c9daf401195f89b5169819d1ce3069f97d4b07541000488d03a2/getsentry/sentry-javascript/issues/7755 |
| og:image:alt | Since #6739 is sadly not really possible due to browser constraints, another way to allow people to opt-out of the worker behavior while still having compression could be to allow passing in a cust... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mydea |
| 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