diff --git a/packages/cra-template-typescript/template.json b/packages/cra-template-typescript/template.json index fc6ecd4aa3b..1135941d081 100644 --- a/packages/cra-template-typescript/template.json +++ b/packages/cra-template-typescript/template.json @@ -20,7 +20,6 @@ "@ackee/petrus": "5.2.x", "@ackee/redux-utils": "2.x", "@sentry/react": "6.x", - "@sentry/tracing": "6.x", "antd": "4.x", "connected-react-router": "6.8.x", "fela": "11.x", diff --git a/packages/cra-template-typescript/template/src/config/sentry/index.ts b/packages/cra-template-typescript/template/src/config/sentry/index.ts index 97360a14808..513dd6627e5 100644 --- a/packages/cra-template-typescript/template/src/config/sentry/index.ts +++ b/packages/cra-template-typescript/template/src/config/sentry/index.ts @@ -1,10 +1,8 @@ -import { init, createReduxEnhancer, reactRouterV5Instrumentation } from '@sentry/react'; +import { init, createReduxEnhancer } from '@sentry/react'; import type { BrowserOptions } from '@sentry/react'; -import { Integrations } from '@sentry/tracing'; import config from 'config/config'; import { currentEnv, isEnvProduction, isServerEnv } from 'constants/index'; -import { history } from 'modules/core/modules/router/config'; declare global { interface Window { @@ -16,11 +14,7 @@ if (config.sentry.enable) { const options: BrowserOptions = { dsn: config.sentry.dsn, debug: false, - integrations: [ - new Integrations.BrowserTracing({ - routingInstrumentation: reactRouterV5Instrumentation(history), - }), - ], + integrations: [], environment: currentEnv, release: `${process.env.REACT_APP_NAME}@${process.env.REACT_APP_VERSION}`, denyUrls: [