From 79d3e19bf74aecdf103cbf64a74f94ef71d104cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rychl=C3=BD?= <david@davidrychly.cz>
Date: Wed, 16 Oct 2024 21:51:58 +0200
Subject: [PATCH] =?UTF-8?q?Oprava=20Sentry=20BrowserTracing,=20zakomentov?=
 =?UTF-8?q?=C3=A1n=C3=AD=20polyfill.io=20vol=C3=A1n=C3=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 public/index.html | 2 +-
 src/App.jsx       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/public/index.html b/public/index.html
index 2294860..da0dde1 100644
--- a/public/index.html
+++ b/public/index.html
@@ -37,7 +37,7 @@
       Learn how to configure a non-root public URL by running `npm run build`.
     -->
     <link rel="stylesheet" href="%REACT_APP_STYLEGUIDE_URL%/css/styles.css" />
-    <script src="https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver"></script>
+    <!--<script src="https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver"></script>-->
   </head>
   <body>
     <noscript>You need to enable JavaScript to run this app.</noscript>
diff --git a/src/App.jsx b/src/App.jsx
index 48eb791..ff47a23 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -5,7 +5,7 @@ import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
 import { ReactKeycloakProvider as KeycloakProvider } from "@react-keycloak/web";
 import { extraErrorDataIntegration } from "@sentry/integrations";
 import * as Sentry from "@sentry/react";
-import { Integrations } from "@sentry/tracing";
+import { browserTracingIntegration } from "@sentry/browser"
 
 import { loadAnnouncements } from "actions/announcements";
 import { loadConfig } from "actions/global-info";
@@ -33,7 +33,7 @@ if (process.env.REACT_APP_SENTRY_DSN) {
   Sentry.init({
     dsn: process.env.REACT_APP_SENTRY_DSN,
     tracesSampleRate: 0.1,
-    integrations: [extraErrorDataIntegration(), new Integrations.BrowserTracing()],
+    integrations: [extraErrorDataIntegration(), new browserTracingIntegration()],
   });
 }
 
-- 
GitLab