>Next, import and initialize the Sentry module as early as possible, before initializing React:
ts
import React from "react";
import ReactDOM from "react-dom";
import * as Sentry from "@sentry/react";
import { Integrations } from "@sentry/tracing";
import App from "./App";
Sentry.init({
dsn: "https://*****.ingest.sentry.io/5627136",
integrations: [new Integrations.BrowserTracing()],
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
ReactDOM.render(<App />, document.getElementById("root"));
>The above configuration captures both error and performance data. To reduce the volume of performance data captured, change tracesSampleRate to a value between 0 and 1.
先日のエラーを故意に再現してみる
ts
// @ts-ignore
console.log([][0].TalkID);
開発サーバでやってるのにNew alert from keicho-webclient in productionってメールが届いてしまう