Skip to content

Commit

Permalink
fix performance monitoring in Sentry (#1366)
Browse files Browse the repository at this point in the history
[skip ci] rollback to @sentry/react v7.24
  • Loading branch information
tom2drum authored Nov 23, 2023
1 parent 0f62d6f commit 922f55b
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 59 deletions.
1 change: 1 addition & 0 deletions deploy/values/review/values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ frontend:
OTEL_SDK_ENABLED: true
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger-collector.jaeger.svc.cluster.local:4318
NEXT_OTEL_VERBOSE: 1
NEXT_PUBLIC_SENTRY_ENABLE_TRACING: true
envFromSecret:
NEXT_PUBLIC_SENTRY_DSN: ref+vault://deployment-values/blockscout/dev/review?token_env=VAULT_TOKEN&address=https://vault.k8s.blockscout.com#/NEXT_PUBLIC_SENTRY_DSN
SENTRY_CSP_REPORT_URI: ref+vault://deployment-values/blockscout/dev/review?token_env=VAULT_TOKEN&address=https://vault.k8s.blockscout.com#/SENTRY_CSP_REPORT_URI
Expand Down
2 changes: 2 additions & 0 deletions lib/sentry/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type * as Sentry from '@sentry/react';
import { BrowserTracing } from '@sentry/tracing';

import appConfig from 'configs/app';

Expand All @@ -25,6 +26,7 @@ export const config: Sentry.BrowserOptions | undefined = (() => {
release: feature.release,
enableTracing: feature.enableTracing,
tracesSampleRate,
integrations: [ new BrowserTracing() ],

// error filtering settings
// were taken from here - https://docs.sentry.io/platforms/node/guides/azure-functions/configuration/filtering/#decluttering-sentry
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"@opentelemetry/sdk-trace-node": "^1.18.0",
"@opentelemetry/semantic-conventions": "^1.18.0",
"@sentry/cli": "^2.21.2",
"@sentry/react": "^7.72.0",
"@sentry/react": "7.24.0",
"@sentry/tracing": "7.24.0",
"@slise/embed-react": "^2.2.0",
"@tanstack/react-query": "^5.4.3",
"@tanstack/react-query-devtools": "^5.4.3",
Expand Down
100 changes: 42 additions & 58 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4478,27 +4478,15 @@
"@noble/hashes" "~1.3.0"
"@scure/base" "~1.1.0"

"@sentry-internal/[email protected]":
version "7.72.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/tracing/-/tracing-7.72.0.tgz#6293a08b8b3dff80499207a4b4994ae70aafc34c"
integrity sha512-DToryaRSHk9R5RLgN4ktYEXZjQdqncOAWPqyyIurji8lIobXFRfmLtGL1wjoCK6sQNgWsjhSM9kXxwGnva1DNw==
dependencies:
"@sentry/core" "7.72.0"
"@sentry/types" "7.72.0"
"@sentry/utils" "7.72.0"
tslib "^2.4.1 || ^1.9.3"

"@sentry/[email protected]":
version "7.72.0"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.72.0.tgz#8920d32920031de7ef70140ac13de267e773e5c7"
integrity sha512-fcFDTzqhPd3VZAmmYW3KvBTBaEfrKjPmRhlAsfhkGWYLCHqVkNtzsFER4cmUNRGNxjyt9tcG3WlTTqgLRucycQ==
dependencies:
"@sentry-internal/tracing" "7.72.0"
"@sentry/core" "7.72.0"
"@sentry/replay" "7.72.0"
"@sentry/types" "7.72.0"
"@sentry/utils" "7.72.0"
tslib "^2.4.1 || ^1.9.3"
"@sentry/[email protected]":
version "7.24.0"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.24.0.tgz#3e657f8032322d07f98486f44e048fcdbc3aaff7"
integrity sha512-G2eeYWF7rIz1Dm8PCQiuuTzctrrJSWqD5MCWOICqHr8FrxOPVsVO3Qa/B7/+BSpHd+V7sSUU17oFu41SAWZCOg==
dependencies:
"@sentry/core" "7.24.0"
"@sentry/types" "7.24.0"
"@sentry/utils" "7.24.0"
tslib "^1.9.3"

"@sentry/cli@^2.21.2":
version "2.21.2"
Expand All @@ -4511,47 +4499,48 @@
proxy-from-env "^1.1.0"
which "^2.0.2"

"@sentry/core@7.72.0":
version "7.72.0"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.72.0.tgz#df19f9dc1c2cfc5993a73c0c36283c35f9c52f94"
integrity sha512-G03JdQ5ZsFNRjcNNi+QvCjqOuBvYqU92Gs1T2iK3GE8dSBTu2khThydMpG4xrKZQLIpHOyiIhlFZiuPtZ66W8w==
"@sentry/core@7.24.0":
version "7.24.0"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.24.0.tgz#e856a071c702279854d6e5221957d61cd48036cc"
integrity sha512-QVRtmnaWEI0/MHIfBozgsMfh+7WU6OfpvUd72x1Dpk3Zk6Zs7Hqq0YfxfeBd7ApjNjGogPl1beaHcHAHlr3IyA==
dependencies:
"@sentry/types" "7.72.0"
"@sentry/utils" "7.72.0"
tslib "^2.4.1 || ^1.9.3"
"@sentry/types" "7.24.0"
"@sentry/utils" "7.24.0"
tslib "^1.9.3"

"@sentry/react@^7.72.0":
version "7.72.0"
resolved "https://registry.yarnpkg.com/@sentry/react/-/react-7.72.0.tgz#badb4b5e28d27c892917210a6816cb6a2af2c2a5"
integrity sha512-BYFO3uyB9FfdUq05NtsS+OfU636HMZ7avbSEALo24x+OPuaD+fCByTdgxYVpDRYrBPa7lALYzCge0PDcGnGiig==
"@sentry/react@7.24.0":
version "7.24.0"
resolved "https://registry.yarnpkg.com/@sentry/react/-/react-7.24.0.tgz#aa51b09bad8c5d7af163a28a4718abb1e68ea232"
integrity sha512-uW6j7wrPxg7UillUVdsjrsIPqqPEAN/PdotR2O75Qh7s0aR7+Le8i29C4VeW/iubXhlxF/qFvnXwqG5Ji4GwBg==
dependencies:
"@sentry/browser" "7.72.0"
"@sentry/types" "7.72.0"
"@sentry/utils" "7.72.0"
"@sentry/browser" "7.24.0"
"@sentry/types" "7.24.0"
"@sentry/utils" "7.24.0"
hoist-non-react-statics "^3.3.2"
tslib "^2.4.1 || ^1.9.3"
tslib "^1.9.3"

"@sentry/replay@7.72.0":
version "7.72.0"
resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.72.0.tgz#39da5d971045a6d9bf5d3bd16ccc1f5c0c42c4c8"
integrity sha512-dHH/mYCFBwJ/kYmL9L5KihjwQKcefiuvcH0otHSwKSpbbeEoM/BV+SHQoYGd6OMSYnL9fq1dHfF7Zo26p5Yu0Q==
"@sentry/tracing@7.24.0":
version "7.24.0"
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-7.24.0.tgz#d9477a2da9c902ca9663cd4cd87ba279f73f212c"
integrity sha512-O/4hE/lYM6+hM4K5O06pWNuHzZb2ex5f2497bxkwxq17wpJhVp1oDuz8hbWNL7BUNeIbeDpqunBHQzzmVRbL1Q==
dependencies:
"@sentry/core" "7.72.0"
"@sentry/types" "7.72.0"
"@sentry/utils" "7.72.0"
"@sentry/core" "7.24.0"
"@sentry/types" "7.24.0"
"@sentry/utils" "7.24.0"
tslib "^1.9.3"

"@sentry/types@7.72.0":
version "7.72.0"
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.72.0.tgz#b474d3821338a545fb2db109715d9aad502bc810"
integrity sha512-g6u0mk62yGshx02rfFADIfyR/S9VXcf3RG2qQPuvykrWtOfN/BOTrZypF7I+MiqKwRW76r3Pcu2C/AB+6z9XQA==
"@sentry/types@7.24.0":
version "7.24.0"
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.24.0.tgz#1acc841efe7bd56fc3eb647a613dba92631e8413"
integrity sha512-Xs4r9esBPieJUA6cGmMqfSQiinILdlhScjM+NqDSzxOo8+LRCJzckTLhUttBGVlaAoa4hjCEsfkHA1tVV1DycA==

"@sentry/utils@7.72.0":
version "7.72.0"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.72.0.tgz#798c764ac61bb658e2117792010ccd20ad8c7b02"
integrity sha512-o/MtqI7WJXuswidH0bSgBP40KN2lrnyQEIx5uoyJUJi/QEaboIsqbxU62vaFJpde8SYrbA+rTnP3J3ujF2gUag==
"@sentry/utils@7.24.0":
version "7.24.0"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.24.0.tgz#73f100dc8942e73353473eaf3168e5052e2f45be"
integrity sha512-baaRDhHWHTyhmR6V8YKSo0NvN+D17pIKRDmb2vpWHVpTjobKCivNBLRoy3VhnIMS/24XyZnL028QLwkUNLg1Ug==
dependencies:
"@sentry/types" "7.72.0"
tslib "^2.4.1 || ^1.9.3"
"@sentry/types" "7.24.0"
tslib "^1.9.3"

"@sideway/address@^4.1.3":
version "4.1.4"
Expand Down Expand Up @@ -14105,11 +14094,6 @@ tslib@^2.3.0, tslib@^2.5.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==

"tslib@^2.4.1 || ^1.9.3":
version "2.6.2"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==

tsutils@^3.21.0:
version "3.21.0"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"
Expand Down

0 comments on commit 922f55b

Please sign in to comment.