Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
🔥 Don't include @sentry/tracing by default due to bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
cermakjiri committed Oct 25, 2021
1 parent e03c7a9 commit e5b2893
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion packages/cra-template-typescript/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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: [
Expand Down

0 comments on commit e5b2893

Please sign in to comment.