attemka před 1 rokem
rodič
revize
230c4fa28f

+ 10 - 2
CHANGELOG.md

@@ -5,9 +5,16 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
+## [2.1.0] - 2023-04-07
+
+### Changed
+
+- Bumped Sentry version to include replays functionality
+
 ## [2.0.4] - 2023-04-06
 
 ### Fixed
+
 - Fixed video upload extrinsic bug
 - Fixed channel creation bug
 
@@ -34,12 +41,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ### Fixed
 
- - Fixed app metadata for uploaded videos
- - Fixed followed channels uploads on homepage
+- Fixed app metadata for uploaded videos
+- Fixed followed channels uploads on homepage
 
 ## [2.0.0] - 2023-03-31
 
 ### Changed
+
 - Channel requirements for YPP are now shown before channel creation
 - Atlas is now using OrionV2
   - New distributors change logic

+ 1 - 2
packages/atlas/atlas.config.yml

@@ -677,8 +677,7 @@ legal:
       - Google Analytics
       - Mailchimp (Only when signing up for any of our newsletters)
       - Godaddy
-
-    Please see Item 3. of the Privacy Policy for more information on the extent of these providers.
+      - Sentry
 
     ## 2.4 Regarding Your Cookies
 

+ 2 - 2
packages/atlas/package.json

@@ -1,7 +1,7 @@
 {
   "name": "@joystream/atlas",
   "description": "UI for consuming Joystream - a user governed video platform",
-  "version": "2.0.4",
+  "version": "2.1.0",
   "license": "GPL-3.0",
   "scripts": {
     "start": "vite",
@@ -43,7 +43,7 @@
     "@livesession/sdk": "^1.1.4",
     "@loadable/component": "^5.15.2",
     "@lottiefiles/react-lottie-player": "^3.5.0",
-    "@sentry/react": "^7.25.0",
+    "@sentry/react": "^7.47.0",
     "@talismn/connect-wallets": "^1.2.1",
     "@tippyjs/react": "^4.2.6",
     "aos": "^2.3.4",

+ 8 - 0
packages/atlas/src/utils/logs/sentry.ts

@@ -29,6 +29,14 @@ class _SentryLogger {
         'ResizeObserver loop limit exceeded',
         'ResizeObserver loop completed with undelivered notifications',
       ],
+      // This sets the sample rate to be 10%. You may want this to be 100% while
+      // in development and sample at a lower rate in production
+      replaysSessionSampleRate: 0.1,
+      // If the entire session is not sampled, use the below sample rate to sample
+      // sessions when an error occurs.
+      replaysOnErrorSampleRate: 1.0,
+
+      integrations: [new Sentry.Replay()],
     })
     this.initialized = true
   }

+ 55 - 30
yarn.lock

@@ -3573,7 +3573,7 @@ __metadata:
     "@lottiefiles/react-lottie-player": ^3.5.0
     "@modyfi/vite-plugin-yaml": ^1.0.3
     "@rollup/plugin-babel": ^6.0.3
-    "@sentry/react": ^7.25.0
+    "@sentry/react": ^7.47.0
     "@storybook/addon-actions": 7.0.0-beta.6
     "@storybook/addon-docs": 7.0.0-beta.6
     "@storybook/addon-essentials": 7.0.0-beta.6
@@ -4702,58 +4702,83 @@ __metadata:
   languageName: node
   linkType: hard
 
-"@sentry/browser@npm:7.25.0":
-  version: 7.25.0
-  resolution: "@sentry/browser@npm:7.25.0"
+"@sentry-internal/tracing@npm:7.47.0":
+  version: 7.47.0
+  resolution: "@sentry-internal/tracing@npm:7.47.0"
   dependencies:
-    "@sentry/core": 7.25.0
-    "@sentry/types": 7.25.0
-    "@sentry/utils": 7.25.0
+    "@sentry/core": 7.47.0
+    "@sentry/types": 7.47.0
+    "@sentry/utils": 7.47.0
     tslib: ^1.9.3
-  checksum: 3be0a0798953c36544066a2a915ed9d7494bd6abcf3556e2c14b4c04452619b52c5ee595637b99ddc550ad8752a329cd9d9fa6c3cc0a892634bdf6acd181d007
+  checksum: 46cb6cdd5b64841acd7b38cdde156e15dcf2c225ccd36219ea5796b7ebad34a3c0db1f4c7545e1fec1a1e5897d4368003b1101845404bcd1c27a21c09784cbd3
   languageName: node
   linkType: hard
 
-"@sentry/core@npm:7.25.0":
-  version: 7.25.0
-  resolution: "@sentry/core@npm:7.25.0"
+"@sentry/browser@npm:7.47.0":
+  version: 7.47.0
+  resolution: "@sentry/browser@npm:7.47.0"
   dependencies:
-    "@sentry/types": 7.25.0
-    "@sentry/utils": 7.25.0
+    "@sentry-internal/tracing": 7.47.0
+    "@sentry/core": 7.47.0
+    "@sentry/replay": 7.47.0
+    "@sentry/types": 7.47.0
+    "@sentry/utils": 7.47.0
     tslib: ^1.9.3
-  checksum: 82ad84bbf0948fa44f3471e268d7e8be9225a9057291f7c51e66b631b930b9767f265fef25e9fb3bb5757731595e561930d5fb29881a5c0349b693926ab8c6f5
+  checksum: fdceac3a68195b4fcc58ab9d7907009cb73350646314100853ed56f4f2f6e00b2916c35037ea055c3d583accdf2356ed0690b59bf63038043b85e737a38382dc
   languageName: node
   linkType: hard
 
-"@sentry/react@npm:^7.25.0":
-  version: 7.25.0
-  resolution: "@sentry/react@npm:7.25.0"
+"@sentry/core@npm:7.47.0":
+  version: 7.47.0
+  resolution: "@sentry/core@npm:7.47.0"
   dependencies:
-    "@sentry/browser": 7.25.0
-    "@sentry/types": 7.25.0
-    "@sentry/utils": 7.25.0
+    "@sentry/types": 7.47.0
+    "@sentry/utils": 7.47.0
+    tslib: ^1.9.3
+  checksum: 1cfd41020e5707c7e142dbb7c99118a264bcc5fa64fc06f1e51d8c6166dea0a50fd5896ce5287a4805d088257dc3757cc53ab4f5092166cd759ffeeea1cd8d2e
+  languageName: node
+  linkType: hard
+
+"@sentry/react@npm:^7.47.0":
+  version: 7.47.0
+  resolution: "@sentry/react@npm:7.47.0"
+  dependencies:
+    "@sentry/browser": 7.47.0
+    "@sentry/types": 7.47.0
+    "@sentry/utils": 7.47.0
     hoist-non-react-statics: ^3.3.2
     tslib: ^1.9.3
   peerDependencies:
     react: 15.x || 16.x || 17.x || 18.x
-  checksum: 77ceeeb82229b9193102a4b2fd0d400614a90770eb4b664367698c126f584d559a0d98aa7e4c64dfc78f9deeac95eb9b2e582839b34dc5dc03105b65c6ec6417
+  checksum: 7e42c91c48cf84e36d20433a1b28bf03c801ebed67ccd18e40de279c3a800e8f0818b4af9b9f40471070636a0aa1f58a77610383908f780e0b98efe8eb6c6ebd
+  languageName: node
+  linkType: hard
+
+"@sentry/replay@npm:7.47.0":
+  version: 7.47.0
+  resolution: "@sentry/replay@npm:7.47.0"
+  dependencies:
+    "@sentry/core": 7.47.0
+    "@sentry/types": 7.47.0
+    "@sentry/utils": 7.47.0
+  checksum: e4f69a6b698bd38eda4bd16275987d69948ded1dc34253eb804e3b6d09be675fa3c0fcfb85fbfef02c2e863eb80b7148da18b0dd1a7dadaab4353a315733e931
   languageName: node
   linkType: hard
 
-"@sentry/types@npm:7.25.0":
-  version: 7.25.0
-  resolution: "@sentry/types@npm:7.25.0"
-  checksum: 47ddda6b3fa73310f85bf11b3bbe92ceae8dbf705cbcab6168dbfb4a44affcab3eb9f901b13d6c76af535a23775217589d43b6dd0d39d995bbc2c10b79d117bf
+"@sentry/types@npm:7.47.0":
+  version: 7.47.0
+  resolution: "@sentry/types@npm:7.47.0"
+  checksum: 42f1f58bebb2689d609ebc614a04462cb15f749d304dcadc2c93b851ecb88a20d59853b01f22b91f37c7cfb41ed7d0992843043ada7a7592ea1043191092e350
   languageName: node
   linkType: hard
 
-"@sentry/utils@npm:7.25.0":
-  version: 7.25.0
-  resolution: "@sentry/utils@npm:7.25.0"
+"@sentry/utils@npm:7.47.0":
+  version: 7.47.0
+  resolution: "@sentry/utils@npm:7.47.0"
   dependencies:
-    "@sentry/types": 7.25.0
+    "@sentry/types": 7.47.0
     tslib: ^1.9.3
-  checksum: 2dd0c75751e909c8886367961bba63e295d50bb71ea09da56f97aed70657f706772cc708ea1e4bbcf47767b4face478dcf5a816d48cf9b4cee5edc498910495a
+  checksum: d37d6299ef28c7ce32b1af7644f59ab5a5fd7a8155e97b3758c87d11a4b2cb406d4e3d2b260afcd200dadef99582f92b08ef6b89543f11611d2e034b3940d7b3
   languageName: node
   linkType: hard