Commit 7c37b9d0 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

build: upgrade sentry (#6264)

* build: upgrade sentry

* chore: comment nits
parent 7688c527
...@@ -17,10 +17,13 @@ const AMPLITUDE_DUMMY_KEY = '00000000000000000000000000000000' ...@@ -17,10 +17,13 @@ const AMPLITUDE_DUMMY_KEY = '00000000000000000000000000000000'
export const STATSIG_DUMMY_KEY = 'client-0000000000000000000000000000000000000000000' export const STATSIG_DUMMY_KEY = 'client-0000000000000000000000000000000000000000000'
Sentry.init({ Sentry.init({
// General configuration:
dsn: process.env.REACT_APP_SENTRY_DSN, dsn: process.env.REACT_APP_SENTRY_DSN,
release: process.env.REACT_APP_GIT_COMMIT_HASH, release: process.env.REACT_APP_GIT_COMMIT_HASH,
environment: getEnvName(), environment: getEnvName(),
// Exception reporting configuration:
enabled: isSentryEnabled(), enabled: isSentryEnabled(),
// Performance tracing configuration:
tracesSampleRate: Number(process.env.REACT_APP_SENTRY_TRACES_SAMPLE_RATE ?? 0), tracesSampleRate: Number(process.env.REACT_APP_SENTRY_TRACES_SAMPLE_RATE ?? 0),
integrations: [ integrations: [
new BrowserTracing({ new BrowserTracing({
...@@ -28,13 +31,6 @@ Sentry.init({ ...@@ -28,13 +31,6 @@ Sentry.init({
startTransactionOnPageLoad: true, startTransactionOnPageLoad: true,
}), }),
], ],
/**
* TODO(INFRA-143)
* According to Sentry, this shouldn't be necessary, as they default to `3` when not set.
* Unfortunately, that doesn't work right now, so we workaround it by explicitly setting
* the `normalizeDepth` to `10`. This should be removed once the issue is fixed.
*/
normalizeDepth: 10,
}) })
initializeAnalytics(AMPLITUDE_DUMMY_KEY, OriginApplication.INTERFACE, { initializeAnalytics(AMPLITUDE_DUMMY_KEY, OriginApplication.INTERFACE, {
......
...@@ -3190,67 +3190,75 @@ ...@@ -3190,67 +3190,75 @@
dependencies: dependencies:
cross-fetch "^3.1.5" cross-fetch "^3.1.5"
"@sentry/browser@7.42.0": "@sentry-internal/tracing@7.45.0":
version "7.42.0" version "7.45.0"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.42.0.tgz#357731e5ab65a226c98370f9e487fe48cadab765" resolved "https://registry.yarnpkg.com/@sentry-internal/tracing/-/tracing-7.45.0.tgz#01f347d0d1b42451b340b32b12923dc22e042d27"
integrity sha512-xTwfvrQPmYTkAvGivoJFadPLKLDS2N57D/18NA1gcrnF8NwR+I28x3I9ziVUiMCYX+6nJuqBNlMALAEPbb2G5A== integrity sha512-0aIDY2OvUX7k2XHaimOlWkboXoQvJ9dEKvfpu0Wh0YxfUTGPa+wplUdg3WVdkk018sq1L11MKmj4MPZyYUvXhw==
dependencies: dependencies:
"@sentry/core" "7.42.0" "@sentry/core" "7.45.0"
"@sentry/replay" "7.42.0" "@sentry/types" "7.45.0"
"@sentry/types" "7.42.0" "@sentry/utils" "7.45.0"
"@sentry/utils" "7.42.0"
tslib "^1.9.3" tslib "^1.9.3"
"@sentry/core@7.42.0": "@sentry/browser@7.45.0":
version "7.42.0" version "7.45.0"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.42.0.tgz#3333a1b868e8e69b6fbc8e5a9e9281be49321ac7" resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.45.0.tgz#c9f8031ad184558d08c374d4e4ee30996cc5b543"
integrity sha512-vNcTyoQz5kUXo5vMGDyc5BJMO0UugPvMfYMQVxqt/BuDNR30LVhY+DL2tW1DFZDvRvyn5At+H7kSTj6GFrANXQ== integrity sha512-/dUrUwnI34voMj+jSJT7b5Jun+xy1utVyzzwTq3Oc22N+SB17ZOX9svZ4jl1Lu6tVJPVjPyvL6zlcbrbMwqFjg==
dependencies: dependencies:
"@sentry/types" "7.42.0" "@sentry-internal/tracing" "7.45.0"
"@sentry/utils" "7.42.0" "@sentry/core" "7.45.0"
"@sentry/replay" "7.45.0"
"@sentry/types" "7.45.0"
"@sentry/utils" "7.45.0"
tslib "^1.9.3" tslib "^1.9.3"
"@sentry/react@^7.40.0": "@sentry/core@7.45.0":
version "7.42.0" version "7.45.0"
resolved "https://registry.yarnpkg.com/@sentry/react/-/react-7.42.0.tgz#7662faef398032f253fe5b174860e1ec5f76ddd5" resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.45.0.tgz#87fdb283c211f145e508cc8ff89dabdf2fbcfc39"
integrity sha512-DOGK+vuSZq5lTiqVU6wVay0AUMjtSPZu25gzLIXntfoqw36CLUswP7ew61+Tas6tpXDdf4lR3uxJRwySiQLopw== integrity sha512-xJfdTS4lRmHvZI/A5MazdnKhBJFkisKu6G9EGNLlZLre+6W4PH5sb7QX4+xoBdqG7v10Jvdia112vi762ojO2w==
dependencies: dependencies:
"@sentry/browser" "7.42.0" "@sentry/types" "7.45.0"
"@sentry/types" "7.42.0" "@sentry/utils" "7.45.0"
"@sentry/utils" "7.42.0" tslib "^1.9.3"
"@sentry/react@^7.45.0":
version "7.45.0"
resolved "https://registry.yarnpkg.com/@sentry/react/-/react-7.45.0.tgz#9d3634b7b93bc1fa0872cdec49c1fbacd4ef2506"
integrity sha512-Dbz85nfvMUikbLHUuIt6fBNPmTvThFn+rWB5KS1NIOJifyWAdpIU3X7yCUJE5xhsUObNLiHlNJlqhaQI4nR1bQ==
dependencies:
"@sentry/browser" "7.45.0"
"@sentry/types" "7.45.0"
"@sentry/utils" "7.45.0"
hoist-non-react-statics "^3.3.2" hoist-non-react-statics "^3.3.2"
tslib "^1.9.3" tslib "^1.9.3"
"@sentry/replay@7.42.0": "@sentry/replay@7.45.0":
version "7.42.0" version "7.45.0"
resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.42.0.tgz#03be2bdab35e0f2d4e415a770c23d50dba8d73b5" resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.45.0.tgz#1da15e8c419bb77ec7475c7b1879d11f17edad20"
integrity sha512-81HQm20hrW0+0eZ5sZf8KsSekkAlI0/u/M+9ZmOn2bHpGihqAM/O/lrXhTzaRXdpX/9NSwSCGY9k7LIRNMKaEQ== integrity sha512-smM7FIcFIyKu30BqCl8BzLo1gH/z9WwXdGX6V0fNvHab9fJZ09+xjFn+LmIyo6N8H8jjwsup0+yQ12kiF/ZsEw==
dependencies: dependencies:
"@sentry/core" "7.42.0" "@sentry/core" "7.45.0"
"@sentry/types" "7.42.0" "@sentry/types" "7.45.0"
"@sentry/utils" "7.42.0" "@sentry/utils" "7.45.0"
"@sentry/tracing@^7.40.0": "@sentry/tracing@^7.45.0":
version "7.42.0" version "7.45.0"
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-7.42.0.tgz#bcdac21e1cb5f786465e6252625bd4bf0736e631" resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-7.45.0.tgz#77fe1075b3fdfd5026bf8d816a855bbe992b64a3"
integrity sha512-0veGu3Ntweuj1pwWrJIFHmVdow4yufCreGIhsNDyrclwOjaTY3uI8iA6N62+hhtxOvqv+xueB98K1DvT5liPCQ== integrity sha512-FsoFmZPzTBGvWeJH73NxSF1ot61Zw3aIZo5XolengiKnRmcrQOFxebtMKBiZ61QBRYGqsm5uT7QB7zITU6Ikgg==
dependencies: dependencies:
"@sentry/core" "7.42.0" "@sentry-internal/tracing" "7.45.0"
"@sentry/types" "7.42.0"
"@sentry/utils" "7.42.0"
tslib "^1.9.3"
"@sentry/types@7.42.0": "@sentry/types@7.45.0":
version "7.42.0" version "7.45.0"
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.42.0.tgz#e5019cd41a8c4a98c296e2ff28d6adab4b2eb14e" resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.45.0.tgz#b5e2db7a421f6090398565b0a72fb3bbdc94233a"
integrity sha512-Ga0xaBIR/peuXQ88hI9a5TNY3GLNoH8jpsgPaAjAtRHkLsTx0y3AR+PrD7pUysza9QjvG+Qux01DRvLgaNKOHA== integrity sha512-iFt7msfUK8LCodFF3RKUyaxy9tJv/gpWhzxUFyNxtuVwlpmd+q6mtsFGn8Af3pbpm8A+MKyz1ebMwXj0PQqknw==
"@sentry/utils@7.42.0": "@sentry/utils@7.45.0":
version "7.42.0" version "7.45.0"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.42.0.tgz#fcffd0404836cb56975fbef9e889a42cc55de596" resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.45.0.tgz#e13e075098578557ec3a0decf735cbad6a26ce63"
integrity sha512-cBiDZVipC+is+IVgsTQLJyZWUZQxlLZ9GarNT+XZOZ5BFh0acFtz88hO6+S7vGmhcx2aCvsdC9yb2Yf+BphK6Q== integrity sha512-aTY7qqtNUudd09SH5DVSKMm3iQ6ZeWufduc0I9bPZe6UMM09BDc4KmjmrzRkdQ+VaOmHo7+v+HZKQk5f+AbuTQ==
dependencies: dependencies:
"@sentry/types" "7.42.0" "@sentry/types" "7.45.0"
tslib "^1.9.3" tslib "^1.9.3"
"@sinonjs/commons@^1.7.0": "@sinonjs/commons@^1.7.0":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment