Skip to content

Commit

Permalink
chore: add improved sentry perf tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Jan 15, 2024
1 parent 6808536 commit 8b96e9a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/shared/utils/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import React from 'react';
import {
createRoutesFromChildren,
matchRoutes,
useLocation,
useNavigationType,
} from 'react-router-dom';

import { ripemd160 } from '@noble/hashes/ripemd160';
import { sha256 } from '@noble/hashes/sha256';
import { base58 } from '@scure/base';
Expand Down Expand Up @@ -59,6 +67,13 @@ export function initSentry() {
startTransactionOnLocationChange: false,
startTransactionOnPageLoad: false,
markBackgroundTransactions: false,
routingInstrumentation: Sentry.reactRouterV6Instrumentation(
React.useEffect,
useLocation,
useNavigationType,
createRoutesFromChildren,
matchRoutes
),
}),
new Sentry.Feedback({
colorScheme: 'system',
Expand Down

0 comments on commit 8b96e9a

Please sign in to comment.