Migrate to @sentry/browser

This commit is contained in:
David Baker
2023-10-27 16:07:16 +01:00
parent 2cc83e6b26
commit 0fcf6debb6

View File

@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import { Integrations } from "@sentry/tracing"; import { BrowserTracing } from "@sentry/browser";
import i18n from "i18next"; import i18n from "i18next";
import { initReactI18next } from "react-i18next"; import { initReactI18next } from "react-i18next";
import LanguageDetector from "i18next-browser-languagedetector"; import LanguageDetector from "i18next-browser-languagedetector";
@@ -160,7 +160,7 @@ export class Initializer {
dsn: Config.get().sentry?.DSN, dsn: Config.get().sentry?.DSN,
environment: Config.get().sentry?.environment, environment: Config.get().sentry?.environment,
integrations: [ integrations: [
new Integrations.BrowserTracing({ new BrowserTracing({
routingInstrumentation: routingInstrumentation:
Sentry.reactRouterV5Instrumentation(history), Sentry.reactRouterV5Instrumentation(history),
}), }),