Title: [Replay] Allow using replay without installing `@sentry/replay` · Issue #6326 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Replay] Allow using replay without installing `@sentry/replay` · Issue #6326 · getsentry/sentry-javascript
X Title: [Replay] Allow using replay without installing `@sentry/replay` · Issue #6326 · getsentry/sentry-javascript
Description: Currently, in order to use replay you have to run: yarn add @sentry/replay And then use it in your codebase like this: import * as Sentry from '@sentry/browser'; import { Replay } from '@sentry/replay'; Sentry.init({ dsn: '__DSN__', inte...
Open Graph Description: Currently, in order to use replay you have to run: yarn add @sentry/replay And then use it in your codebase like this: import * as Sentry from '@sentry/browser'; import { Replay } from '@sentry/rep...
X Description: Currently, in order to use replay you have to run: yarn add @sentry/replay And then use it in your codebase like this: import * as Sentry from '@sentry/browser'; import { Replay } from '...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/6326
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Replay] Allow using replay without installing `@sentry/replay`","articleBody":"Currently, in order to use replay you have to run:\r\n\r\n```\r\nyarn add @sentry/replay\r\n```\r\n\r\nAnd then use it in your codebase like this:\r\n\r\n```js\r\nimport * as Sentry from '@sentry/browser';\r\nimport { Replay } from '@sentry/replay';\r\n\r\nSentry.init({\r\n dsn: '__DSN__',\r\n integrations: [\r\n new Replay({})\r\n ],\r\n});\r\n```\r\n\r\nWe want to simplify this, so the user can do e.g.:\r\n\r\n```js\r\nimport * as Sentry from '@sentry/browser';\r\n\r\nSentry.init({\r\n dsn: '__DSN__',\r\n integrations: [\r\n new Sentry.Replay({})\r\n ],\r\n});\r\n```\r\n\r\nAnd does not need to run `yarn add @sentry/replay` at all.\r\n\r\n## Goals\r\n\r\n- We do not affect bundle size for users who do not enable replay via CDN\r\n- We do not affect bundle size for users who do not enable replay via a bundler with tree shaking\r\n- This should happen in a backwards-compatible way (e.g. in 7.x)\r\n- Ideally, users that have replay currently setup with the manual import from `@sentry/replay` can continue using this for the forseeable time\r\n\r\n## Non-goals\r\n\r\n- For users that have, for whatever reason, no tree shaking, the bundle size _may_ increase\r\n\r\n## Related\r\n\r\nWe may want to do the same for `@sentry/tracing` in the future.\r\n","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2022-11-29T10:51:06Z","url":"https://github.com/getsentry/sentry-javascript/issues/6326"}
| 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:1de5dbb6-b78a-8857-88a1-75f218cbb7d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA9E:8F74F:492B72:664BED:6B044445 |
| html-safe-nonce | 0be3e07d7fb28f8877768445dd38a3013fcadd86ab64fe82fd2d3a78c5666460 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTlFOjhGNzRGOjQ5MkI3Mjo2NjRCRUQ6NkIwNDQ0NDUiLCJ2aXNpdG9yX2lkIjoiODMzMTMxMTg5MjUyNjI4NTg5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cb422a711579479212468de1530fc8a170044f2486d06bf4dcc4c21aa121d6b9 |
| hovercard-subject-tag | issue:1467850704 |
| 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/6326/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9bfb9688befdb11675bb659c5ee0b5931bf5cb480909dc075945f3ccfd2def7b/getsentry/sentry-javascript/issues/6326 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9bfb9688befdb11675bb659c5ee0b5931bf5cb480909dc075945f3ccfd2def7b/getsentry/sentry-javascript/issues/6326 |
| og:image:alt | Currently, in order to use replay you have to run: yarn add @sentry/replay And then use it in your codebase like this: import * as Sentry from '@sentry/browser'; import { Replay } from '@sentry/rep... |
| 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 | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| 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 | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| 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