diff --git a/src/dashboardWebView/index.tsx b/src/dashboardWebView/index.tsx index 483f41b3..94144d19 100644 --- a/src/dashboardWebView/index.tsx +++ b/src/dashboardWebView/index.tsx @@ -4,9 +4,8 @@ import { RecoilRoot } from "recoil"; import { Dashboard } from "./components/Dashboard"; import * as Sentry from "@sentry/react"; import { Integrations } from "@sentry/tracing"; - -import './styles.css'; import { SENTRY_LINK } from "../constants"; +import './styles.css'; Sentry.init({ dsn: SENTRY_LINK, diff --git a/src/panelWebView/index.tsx b/src/panelWebView/index.tsx index f205dc1d..6e8c6157 100644 --- a/src/panelWebView/index.tsx +++ b/src/panelWebView/index.tsx @@ -3,12 +3,7 @@ import { render } from "react-dom"; import { ViewPanel } from "./ViewPanel"; import * as Sentry from "@sentry/react"; import { Integrations } from "@sentry/tracing"; - -Sentry.init({ - dsn: SENTRY_LINK, - integrations: [new Integrations.BrowserTracing()], - tracesSampleRate: 0, // No performance tracing required -}); +import { SENTRY_LINK } from "../constants"; // require('@vscode/codicons/dist/codicon.css'); import '@bendera/vscode-webview-elements/dist/vscode-table'; @@ -20,7 +15,12 @@ import '@bendera/vscode-webview-elements/dist/vscode-table-cell'; import '@bendera/vscode-webview-elements/dist/vscode-collapsible'; import '@bendera/vscode-webview-elements/dist/vscode-checkbox'; import '@bendera/vscode-webview-elements/dist/vscode-label'; -import { SENTRY_LINK } from "../constants"; + +Sentry.init({ + dsn: SENTRY_LINK, + integrations: [new Integrations.BrowserTracing()], + tracesSampleRate: 0, // No performance tracing required +}); declare const acquireVsCodeApi: () => { getState: () => T;