Skip to content

Commit b2226e8

Browse files
committed
Sentry upgrade
1 parent 7e61c5e commit b2226e8

File tree

3 files changed

+72
-24
lines changed

3 files changed

+72
-24
lines changed

packages/skin-museum-client/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@sentry/react": "^5.27.3",
7-
"@sentry/tracing": "^5.27.3",
6+
"@sentry/react": "^8.54.0",
87
"algoliasearch": "^3.30.0",
98
"async": "^2.6.0",
109
"classnames": "^2.2.6",

packages/skin-museum-client/src/index.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,29 @@ import { Provider } from "react-redux";
44
import { createStore } from "./redux/store";
55
import App from "./App";
66
import * as Sentry from "@sentry/react";
7-
import { Integrations } from "@sentry/tracing";
87
// import registerServiceWorker from "./registerServiceWorker";
98
import { unregister } from "./registerServiceWorker";
109
import { SENTRY_DSN } from "./constants";
1110

1211
Sentry.init({
1312
dsn: SENTRY_DSN,
14-
integrations: [new Integrations.BrowserTracing()],
13+
integrations: [Sentry.replayIntegration()],
1514

16-
// We recommend adjusting this value in production, or using tracesSampler
17-
// for finer control
15+
// Set tracesSampleRate to 1.0 to capture 100%
16+
// of transactions for tracing.
17+
// Learn more at
18+
// https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
1819
tracesSampleRate: 1.0,
20+
21+
// // Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
22+
// tracePropagationTargets: [/^\//, /^https:\/\/yourserver\.io\/api/],
23+
24+
// Capture Replay for 10% of all sessions,
25+
// plus for 100% of sessions with an error
26+
// Learn more at
27+
// https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration
28+
// replaysSessionSampleRate: 0.1,
29+
replaysOnErrorSampleRate: 1.0,
1930
});
2031

2132
ReactDOM.render(

yarn.lock

Lines changed: 56 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5316,15 +5316,35 @@
53165316
resolved "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.1.tgz"
53175317
integrity sha512-S3Kq8e7LqxkA9s7HKLqXGTGck1uwis5vAXan3FnU5yw1Ec5hsSGnq4s/UCaSqABPOnOTg7zASLyst7+ohgWexg==
53185318

5319-
"@sentry/browser@5.30.0":
5320-
version "5.30.0"
5321-
resolved "https://registry.npmjs.org/@sentry/browser/-/browser-5.30.0.tgz"
5322-
integrity sha512-rOb58ZNVJWh1VuMuBG1mL9r54nZqKeaIlwSlvzJfc89vyfd7n6tQ1UXMN383QBz/MS5H5z44Hy5eE+7pCrYAfw==
5319+
"@sentry-internal/browser-utils@8.54.0":
5320+
version "8.54.0"
5321+
resolved "https://registry.yarnpkg.com/@sentry-internal/browser-utils/-/browser-utils-8.54.0.tgz#2d68c7fa843db867ed98059faf1a750be3eca95a"
5322+
integrity sha512-DKWCqb4YQosKn6aD45fhKyzhkdG7N6goGFDeyTaJFREJDFVDXiNDsYZu30nJ6BxMM7uQIaARhPAC5BXfoED3pQ==
53235323
dependencies:
5324-
"@sentry/core" "5.30.0"
5325-
"@sentry/types" "5.30.0"
5326-
"@sentry/utils" "5.30.0"
5327-
tslib "^1.9.3"
5324+
"@sentry/core" "8.54.0"
5325+
5326+
"@sentry-internal/feedback@8.54.0":
5327+
version "8.54.0"
5328+
resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-8.54.0.tgz#52c3a63aa5b520eca7acfa1376621e8441984126"
5329+
integrity sha512-nQqRacOXoElpE0L0ADxUUII0I3A94niqG9Z4Fmsw6057QvyrV/LvTiMQBop6r5qLjwMqK+T33iR4/NQI5RhsXQ==
5330+
dependencies:
5331+
"@sentry/core" "8.54.0"
5332+
5333+
"@sentry-internal/replay-canvas@8.54.0":
5334+
version "8.54.0"
5335+
resolved "https://registry.yarnpkg.com/@sentry-internal/replay-canvas/-/replay-canvas-8.54.0.tgz#e57a3893db2bb0ea7ad9dc2a804bb035142fe3ba"
5336+
integrity sha512-K/On3OAUBeq/TV2n+1EvObKC+WMV9npVXpVyJqCCyn8HYMm8FUGzuxeajzm0mlW4wDTPCQor6mK9/IgOquUzCw==
5337+
dependencies:
5338+
"@sentry-internal/replay" "8.54.0"
5339+
"@sentry/core" "8.54.0"
5340+
5341+
"@sentry-internal/replay@8.54.0":
5342+
version "8.54.0"
5343+
resolved "https://registry.yarnpkg.com/@sentry-internal/replay/-/replay-8.54.0.tgz#b92990a51ffbe8d92998ff8188db9e3a6f9d1e18"
5344+
integrity sha512-8xuBe06IaYIGJec53wUC12tY2q4z2Z0RPS2s1sLtbA00EvK1YDGuXp96IDD+HB9mnDMrQ/jW5f97g9TvPsPQUg==
5345+
dependencies:
5346+
"@sentry-internal/browser-utils" "8.54.0"
5347+
"@sentry/core" "8.54.0"
53285348

53295349
"@sentry/browser@5.9.1":
53305350
version "5.9.1"
@@ -5336,6 +5356,17 @@
53365356
"@sentry/utils" "5.8.0"
53375357
tslib "^1.9.3"
53385358

5359+
"@sentry/browser@8.54.0":
5360+
version "8.54.0"
5361+
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-8.54.0.tgz#5487075908aac564892e689e1b6d233fdb314f5b"
5362+
integrity sha512-BgUtvxFHin0fS0CmJVKTLXXZcke0Av729IVfi+2fJ4COX8HO7/HAP02RKaSQGmL2HmvWYTfNZ7529AnUtrM4Rg==
5363+
dependencies:
5364+
"@sentry-internal/browser-utils" "8.54.0"
5365+
"@sentry-internal/feedback" "8.54.0"
5366+
"@sentry-internal/replay" "8.54.0"
5367+
"@sentry-internal/replay-canvas" "8.54.0"
5368+
"@sentry/core" "8.54.0"
5369+
53395370
"@sentry/core@5.30.0":
53405371
version "5.30.0"
53415372
resolved "https://registry.npmjs.org/@sentry/core/-/core-5.30.0.tgz"
@@ -5358,6 +5389,11 @@
53585389
"@sentry/utils" "5.8.0"
53595390
tslib "^1.9.3"
53605391

5392+
"@sentry/core@8.54.0":
5393+
version "8.54.0"
5394+
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-8.54.0.tgz#a2ebec965cadcb6de89e116689feeef79d5862a6"
5395+
integrity sha512-03bWf+D1j28unOocY/5FDB6bUHtYlm6m6ollVejhg45ZmK9iPjdtxNWbrLsjT1WRym0Tjzowu+A3p+eebYEv0Q==
5396+
53615397
"@sentry/hub@5.30.0":
53625398
version "5.30.0"
53635399
resolved "https://registry.npmjs.org/@sentry/hub/-/hub-5.30.0.tgz"
@@ -5409,17 +5445,14 @@
54095445
lru_map "^0.3.3"
54105446
tslib "^1.9.3"
54115447

5412-
"@sentry/react@^5.27.3":
5413-
version "5.30.0"
5414-
resolved "https://registry.npmjs.org/@sentry/react/-/react-5.30.0.tgz"
5415-
integrity sha512-dvn4mqCgbeEuUXEGp5P9PaW5j4GWTFUSdx/yG8f9IxNZv5zM+7otjog9ukrubFZvlxVxD/PrIxK0MhadfFY/Dw==
5448+
"@sentry/react@^8.54.0":
5449+
version "8.54.0"
5450+
resolved "https://registry.yarnpkg.com/@sentry/react/-/react-8.54.0.tgz#16cec103b5d5697bdfebacf6e2d35f19699b3ab3"
5451+
integrity sha512-42T/fp8snYN19Fy/2P0Mwotu4gcdy+1Lx+uYCNcYP1o7wNGigJ7qb27sW7W34GyCCHjoCCfQgeOqDQsyY8LC9w==
54165452
dependencies:
5417-
"@sentry/browser" "5.30.0"
5418-
"@sentry/minimal" "5.30.0"
5419-
"@sentry/types" "5.30.0"
5420-
"@sentry/utils" "5.30.0"
5453+
"@sentry/browser" "8.54.0"
5454+
"@sentry/core" "8.54.0"
54215455
hoist-non-react-statics "^3.3.2"
5422-
tslib "^1.9.3"
54235456

54245457
"@sentry/tracing@5.30.0", "@sentry/tracing@^5.27.3":
54255458
version "5.30.0"
@@ -15283,11 +15316,16 @@ graphql-yoga@^5.10.10:
1528315316
lru-cache "^10.0.0"
1528415317
tslib "^2.8.1"
1528515318

15286-
graphql@16.8.1, graphql@^16.8.1, graphql@^16.9.0:
15319+
graphql@^16.8.1:
1528715320
version "16.8.1"
1528815321
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.8.1.tgz#1930a965bef1170603702acdb68aedd3f3cf6f07"
1528915322
integrity sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==
1529015323

15324+
graphql@^16.9.0:
15325+
version "16.10.0"
15326+
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.10.0.tgz#24c01ae0af6b11ea87bf55694429198aaa8e220c"
15327+
integrity sha512-AjqGKbDGUFRKIRCP9tCKiIGHyriz2oHEbPIbEtcSLSs4YjReZOIPQQWek4+6hjw62H9QShXHyaGivGiYVLeYFQ==
15328+
1529115329
grats@^0.0.31:
1529215330
version "0.0.31"
1529315331
resolved "https://registry.yarnpkg.com/grats/-/grats-0.0.31.tgz#f094786584a0f2fb345b38e6c37330d3f4f391cd"

0 commit comments

Comments
 (0)