Move to new tracing module

This commit is contained in:
regalijan 2023-10-19 16:49:49 -04:00
parent 07e810156f
commit 8538bcb02e
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -2,7 +2,6 @@ import { CacheProvider } from "@emotion/react";
import { ClientStyleContext } from "./context.js"; import { ClientStyleContext } from "./context.js";
import createEmotionCache from "./createEmotionCache.js"; import createEmotionCache from "./createEmotionCache.js";
import { hydrateRoot } from "react-dom/client"; import { hydrateRoot } from "react-dom/client";
import { Integrations } from "@sentry/tracing";
import { RemixBrowser } from "@remix-run/react"; import { RemixBrowser } from "@remix-run/react";
import * as Sentry from "@sentry/react"; import * as Sentry from "@sentry/react";
import { type ReactNode, StrictMode, useState } from "react"; import { type ReactNode, StrictMode, useState } from "react";
@ -11,7 +10,7 @@ Sentry.init({
dsn: dsn:
document.querySelector("meta[name='dsn']")?.getAttribute("content") ?? document.querySelector("meta[name='dsn']")?.getAttribute("content") ??
undefined, undefined,
integrations: [new Integrations.BrowserTracing()], integrations: [new Sentry.BrowserTracing()],
tracesSampleRate: 0.1, tracesSampleRate: 0.1,
}); });