aboutsummaryrefslogtreecommitdiff
path: root/jb-ui/src
diff options
context:
space:
mode:
authorMax Nanis2026-09-13 18:14:29 -0700
committerMax Nanis2026-09-13 18:14:29 -0700
commit1e306cdc5f83fca48eb3d60b7b4ba56055acb5d7 (patch)
tree0545d51062e20d1ea738a29c24697e194fa14397 /jb-ui/src
parent012d60ecf0720b87996c0d080f8328b98f92e13f (diff)
downloadamt-jb-1e306cdc5f83fca48eb3d60b7b4ba56055acb5d7.tar.gz
amt-jb-1e306cdc5f83fca48eb3d60b7b4ba56055acb5d7.zip
Sentry init
Diffstat (limited to 'jb-ui/src')
-rw-r--r--jb-ui/src/main.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/jb-ui/src/main.tsx b/jb-ui/src/main.tsx
index 6e02727..ee4c67e 100644
--- a/jb-ui/src/main.tsx
+++ b/jb-ui/src/main.tsx
@@ -1,9 +1,18 @@
import React from "react";
+import * as Sentry from "@sentry/react";
import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import { store } from "@/store";
import JBApp from "@/JBApp";
+Sentry.init({
+ dsn: "https://70ea814255c91a470e449505ce0ee39d@logs.g-r-l.com/27",
+ environment: import.meta.env.MODE,
+ release: "jb@1.0.0",
+ integrations: [Sentry.browserTracingIntegration()],
+ tracesSampleRate: 1.0,
+});
+
const rootElement = document.getElementById("root");
if (!rootElement) {
throw new Error("Failed to find the root element");