Remove sentry tracing.
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
import { AlertOutlined } from "@ant-design/icons";
|
import { AlertOutlined } from "@ant-design/icons";
|
||||||
import * as Sentry from "@sentry/react";
|
import * as Sentry from "@sentry/react";
|
||||||
import { Integrations } from "@sentry/tracing";
|
|
||||||
import { Button, notification } from "antd";
|
import { Button, notification } from "antd";
|
||||||
|
//import "antd/dist/antd.css";
|
||||||
|
import "antd/dist/antd.less";
|
||||||
import Dinero from "dinero.js";
|
import Dinero from "dinero.js";
|
||||||
import i18n from "i18next";
|
import i18n from "i18next";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
@@ -16,28 +17,26 @@ import { persistor, store } from "./redux/store";
|
|||||||
import * as serviceWorker from "./serviceWorker";
|
import * as serviceWorker from "./serviceWorker";
|
||||||
import "./translations/i18n";
|
import "./translations/i18n";
|
||||||
import "./utils/CleanAxios";
|
import "./utils/CleanAxios";
|
||||||
//import "antd/dist/antd.css";
|
|
||||||
import "antd/dist/antd.less";
|
|
||||||
require("dotenv").config();
|
require("dotenv").config();
|
||||||
|
|
||||||
// Dinero.defaultCurrency = "CAD";
|
// Dinero.defaultCurrency = "CAD";
|
||||||
// Dinero.globalLocale = "en-CA";
|
// Dinero.globalLocale = "en-CA";
|
||||||
Dinero.globalRoundingMode = "HALF_UP";
|
Dinero.globalRoundingMode = "HALF_UP";
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== "development") {
|
//if (process.env.NODE_ENV !== "development") {
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn:
|
dsn:
|
||||||
"https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027",
|
"https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027",
|
||||||
integrations: [
|
integrations: [
|
||||||
new Integrations.BrowserTracing(),
|
// new Integrations.BrowserTracing(),
|
||||||
// new Sentry.Integrations.Breadcrumbs({ console: true }),
|
// new Sentry.Integrations.Breadcrumbs({ console: true }),
|
||||||
],
|
],
|
||||||
environment: process.env.NODE_ENV,
|
environment: process.env.NODE_ENV,
|
||||||
// We recommend adjusting this value in production, or using tracesSampler
|
// We recommend adjusting this value in production, or using tracesSampler
|
||||||
// for finer control
|
// for finer control
|
||||||
tracesSampleRate: 0.5,
|
// tracesSampleRate: 0.5,
|
||||||
});
|
});
|
||||||
}
|
//}
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
|
|||||||
Reference in New Issue
Block a user