Skip to content

Commit c14dc9f

Browse files
committed
Merge branch 'remove-sentry-call-in-ui' into 'master'
fix(ui): remove sentry initialization (platform#217) See merge request postgres-ai/database-lab!690
2 parents 2ed8a5a + 1b5d4de commit c14dc9f

File tree

3 files changed

+1
-100
lines changed

3 files changed

+1
-100
lines changed

ui/packages/platform/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
"@material-ui/system": "^4.12.2",
1717
"@monaco-editor/react": "^4.4.5",
1818
"@mui/material": "^5.10.12",
19+
"@postgres.ai/ce": "link:../ce",
1920
"@postgres.ai/platform": "link:./",
2021
"@postgres.ai/shared": "link:../shared",
21-
"@postgres.ai/ce": "link:../ce",
22-
"@sentry/react": "^6.11.0",
23-
"@sentry/tracing": "^6.11.0",
2422
"@stripe/react-stripe-js": "^1.1.2",
2523
"@stripe/stripe-js": "^1.9.0",
2624
"@types/d3": "^7.4.0",

ui/packages/platform/src/index.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,14 @@
66
*/
77

88
import ReactDOM from 'react-dom'
9-
import * as Sentry from '@sentry/react'
10-
import { Integrations } from '@sentry/tracing'
119

1210
import { initConfig } from '@postgres.ai/shared/config'
1311

14-
import { NODE_ENV, SENTRY_DSN } from 'config/env'
15-
1612
import App from './App'
1713
import { unregister } from './registerServiceWorker'
1814

1915
import './index.scss'
2016

21-
if (NODE_ENV === 'production' && SENTRY_DSN) {
22-
Sentry.init({
23-
dsn: SENTRY_DSN,
24-
integrations: [new Integrations.BrowserTracing()],
25-
environment: NODE_ENV,
26-
// We recommend adjusting this value in production, or using tracesSampler
27-
// for finer control
28-
tracesSampleRate: 1.0,
29-
})
30-
}
31-
3217
const main = async () => {
3318
await initConfig()
3419
ReactDOM.render(<App />, document.getElementById('root'))

ui/pnpm-lock.yaml

Lines changed: 0 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)