Sentry upgrade

This commit is contained in:
Jordan Eldredge 2025-02-03 20:10:28 -08:00
parent 7e61c5e351
commit b2226e84c6
3 changed files with 72 additions and 24 deletions

View file

@ -3,8 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@sentry/react": "^5.27.3",
"@sentry/tracing": "^5.27.3",
"@sentry/react": "^8.54.0",
"algoliasearch": "^3.30.0",
"async": "^2.6.0",
"classnames": "^2.2.6",

View file

@ -4,18 +4,29 @@ import { Provider } from "react-redux";
import { createStore } from "./redux/store";
import App from "./App";
import * as Sentry from "@sentry/react";
import { Integrations } from "@sentry/tracing";
// import registerServiceWorker from "./registerServiceWorker";
import { unregister } from "./registerServiceWorker";
import { SENTRY_DSN } from "./constants";
Sentry.init({
dsn: SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
integrations: [Sentry.replayIntegration()],
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// Learn more at
// https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
tracesSampleRate: 1.0,
// // Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
// tracePropagationTargets: [/^\//, /^https:\/\/yourserver\.io\/api/],
// Capture Replay for 10% of all sessions,
// plus for 100% of sessions with an error
// Learn more at
// https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration
// replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});
ReactDOM.render(

View file

@ -5316,15 +5316,35 @@
resolved "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.1.tgz"
integrity sha512-S3Kq8e7LqxkA9s7HKLqXGTGck1uwis5vAXan3FnU5yw1Ec5hsSGnq4s/UCaSqABPOnOTg7zASLyst7+ohgWexg==
"@sentry/browser@5.30.0":
version "5.30.0"
resolved "https://registry.npmjs.org/@sentry/browser/-/browser-5.30.0.tgz"
integrity sha512-rOb58ZNVJWh1VuMuBG1mL9r54nZqKeaIlwSlvzJfc89vyfd7n6tQ1UXMN383QBz/MS5H5z44Hy5eE+7pCrYAfw==
"@sentry-internal/browser-utils@8.54.0":
version "8.54.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/browser-utils/-/browser-utils-8.54.0.tgz#2d68c7fa843db867ed98059faf1a750be3eca95a"
integrity sha512-DKWCqb4YQosKn6aD45fhKyzhkdG7N6goGFDeyTaJFREJDFVDXiNDsYZu30nJ6BxMM7uQIaARhPAC5BXfoED3pQ==
dependencies:
"@sentry/core" "5.30.0"
"@sentry/types" "5.30.0"
"@sentry/utils" "5.30.0"
tslib "^1.9.3"
"@sentry/core" "8.54.0"
"@sentry-internal/feedback@8.54.0":
version "8.54.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-8.54.0.tgz#52c3a63aa5b520eca7acfa1376621e8441984126"
integrity sha512-nQqRacOXoElpE0L0ADxUUII0I3A94niqG9Z4Fmsw6057QvyrV/LvTiMQBop6r5qLjwMqK+T33iR4/NQI5RhsXQ==
dependencies:
"@sentry/core" "8.54.0"
"@sentry-internal/replay-canvas@8.54.0":
version "8.54.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/replay-canvas/-/replay-canvas-8.54.0.tgz#e57a3893db2bb0ea7ad9dc2a804bb035142fe3ba"
integrity sha512-K/On3OAUBeq/TV2n+1EvObKC+WMV9npVXpVyJqCCyn8HYMm8FUGzuxeajzm0mlW4wDTPCQor6mK9/IgOquUzCw==
dependencies:
"@sentry-internal/replay" "8.54.0"
"@sentry/core" "8.54.0"
"@sentry-internal/replay@8.54.0":
version "8.54.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/replay/-/replay-8.54.0.tgz#b92990a51ffbe8d92998ff8188db9e3a6f9d1e18"
integrity sha512-8xuBe06IaYIGJec53wUC12tY2q4z2Z0RPS2s1sLtbA00EvK1YDGuXp96IDD+HB9mnDMrQ/jW5f97g9TvPsPQUg==
dependencies:
"@sentry-internal/browser-utils" "8.54.0"
"@sentry/core" "8.54.0"
"@sentry/browser@5.9.1":
version "5.9.1"
@ -5336,6 +5356,17 @@
"@sentry/utils" "5.8.0"
tslib "^1.9.3"
"@sentry/browser@8.54.0":
version "8.54.0"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-8.54.0.tgz#5487075908aac564892e689e1b6d233fdb314f5b"
integrity sha512-BgUtvxFHin0fS0CmJVKTLXXZcke0Av729IVfi+2fJ4COX8HO7/HAP02RKaSQGmL2HmvWYTfNZ7529AnUtrM4Rg==
dependencies:
"@sentry-internal/browser-utils" "8.54.0"
"@sentry-internal/feedback" "8.54.0"
"@sentry-internal/replay" "8.54.0"
"@sentry-internal/replay-canvas" "8.54.0"
"@sentry/core" "8.54.0"
"@sentry/core@5.30.0":
version "5.30.0"
resolved "https://registry.npmjs.org/@sentry/core/-/core-5.30.0.tgz"
@ -5358,6 +5389,11 @@
"@sentry/utils" "5.8.0"
tslib "^1.9.3"
"@sentry/core@8.54.0":
version "8.54.0"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-8.54.0.tgz#a2ebec965cadcb6de89e116689feeef79d5862a6"
integrity sha512-03bWf+D1j28unOocY/5FDB6bUHtYlm6m6ollVejhg45ZmK9iPjdtxNWbrLsjT1WRym0Tjzowu+A3p+eebYEv0Q==
"@sentry/hub@5.30.0":
version "5.30.0"
resolved "https://registry.npmjs.org/@sentry/hub/-/hub-5.30.0.tgz"
@ -5409,17 +5445,14 @@
lru_map "^0.3.3"
tslib "^1.9.3"
"@sentry/react@^5.27.3":
version "5.30.0"
resolved "https://registry.npmjs.org/@sentry/react/-/react-5.30.0.tgz"
integrity sha512-dvn4mqCgbeEuUXEGp5P9PaW5j4GWTFUSdx/yG8f9IxNZv5zM+7otjog9ukrubFZvlxVxD/PrIxK0MhadfFY/Dw==
"@sentry/react@^8.54.0":
version "8.54.0"
resolved "https://registry.yarnpkg.com/@sentry/react/-/react-8.54.0.tgz#16cec103b5d5697bdfebacf6e2d35f19699b3ab3"
integrity sha512-42T/fp8snYN19Fy/2P0Mwotu4gcdy+1Lx+uYCNcYP1o7wNGigJ7qb27sW7W34GyCCHjoCCfQgeOqDQsyY8LC9w==
dependencies:
"@sentry/browser" "5.30.0"
"@sentry/minimal" "5.30.0"
"@sentry/types" "5.30.0"
"@sentry/utils" "5.30.0"
"@sentry/browser" "8.54.0"
"@sentry/core" "8.54.0"
hoist-non-react-statics "^3.3.2"
tslib "^1.9.3"
"@sentry/tracing@5.30.0", "@sentry/tracing@^5.27.3":
version "5.30.0"
@ -15283,11 +15316,16 @@ graphql-yoga@^5.10.10:
lru-cache "^10.0.0"
tslib "^2.8.1"
graphql@16.8.1, graphql@^16.8.1, graphql@^16.9.0:
graphql@^16.8.1:
version "16.8.1"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.8.1.tgz#1930a965bef1170603702acdb68aedd3f3cf6f07"
integrity sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==
graphql@^16.9.0:
version "16.10.0"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.10.0.tgz#24c01ae0af6b11ea87bf55694429198aaa8e220c"
integrity sha512-AjqGKbDGUFRKIRCP9tCKiIGHyriz2oHEbPIbEtcSLSs4YjReZOIPQQWek4+6hjw62H9QShXHyaGivGiYVLeYFQ==
grats@^0.0.31:
version "0.0.31"
resolved "https://registry.yarnpkg.com/grats/-/grats-0.0.31.tgz#f094786584a0f2fb345b38e6c37330d3f4f391cd"