try change sentry -> hawk catcher
This commit is contained in:
parent
add9cb471e
commit
9aee5f10d2
|
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
<meta content="true" name="HandheldFriendly" />
|
<meta content="true" name="HandheldFriendly" />
|
||||||
|
|
||||||
|
<script src="https://cdn.rawgit.com/codex-team/hawk.javascript/master/hawk.js" onload="const hawk = new HawkCatcher({token: 'eyJpbnRlZ3JhdGlvbklkIjoiNGVmMDYxZDItMmVlZS00ODc2LWFkOGItYjMxMzEzNGViZjAwIiwic2VjcmV0IjoiOWVkOTZjOWQtYTk4Ny00MjI4LTlmZjctMzNhMzAxZmNkMTg0In0='})"></script>
|
||||||
<script src="https://telegram.org/js/telegram-web-app.js"></script>
|
<script src="https://telegram.org/js/telegram-web-app.js"></script>
|
||||||
|
|
||||||
<title>MyMusic</title>
|
<title>MyMusic</title>
|
||||||
|
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
import { useEffect } from "react";
|
|
||||||
import * as Sentry from "@sentry/react";
|
|
||||||
import {
|
|
||||||
createRoutesFromChildren,
|
|
||||||
matchRoutes,
|
|
||||||
useLocation,
|
|
||||||
useNavigationType,
|
|
||||||
} from "react-router-dom";
|
|
||||||
|
|
||||||
Sentry.init({
|
|
||||||
dsn: import.meta.env.VITE_SENTRY_DSN,
|
|
||||||
integrations: [
|
|
||||||
// See docs for support of different versions of variation of react router
|
|
||||||
// https://docs.sentry.io/platforms/javascript/guides/react/configuration/integrations/react-router/
|
|
||||||
Sentry.reactRouterV6BrowserTracingIntegration({
|
|
||||||
useEffect,
|
|
||||||
useLocation,
|
|
||||||
useNavigationType,
|
|
||||||
createRoutesFromChildren,
|
|
||||||
matchRoutes,
|
|
||||||
}),
|
|
||||||
Sentry.replayIntegration(),
|
|
||||||
],
|
|
||||||
enabled: import.meta.env.PROD, // Only enable in production
|
|
||||||
environment: import.meta.env.MODE, // Set the environment
|
|
||||||
// Set tracesSampleRate to 1.0 to capture 100%
|
|
||||||
// of transactions for tracing.
|
|
||||||
// Learn more at
|
|
||||||
// https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
|
|
||||||
tracesSampleRate: 0,
|
|
||||||
|
|
||||||
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
|
|
||||||
tracePropagationTargets: [
|
|
||||||
// /^\//,
|
|
||||||
// new RegExp(`^${import.meta.env.VITE_API_BASE_URL}`),
|
|
||||||
],
|
|
||||||
// Capture Replay for 10% of all sessions,
|
|
||||||
// plus for 100% of sessions with an error
|
|
||||||
// Learn more at
|
|
||||||
// https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration
|
|
||||||
replaysSessionSampleRate: 0,
|
|
||||||
replaysOnErrorSampleRate: 0,
|
|
||||||
});
|
|
||||||
Loading…
Reference in New Issue