lobe-chat

Форк
0
/
sentry.client.config.ts 
30 строк · 1.1 Кб
1
// This file configures the initialization of Sentry on the client.
2
// The config you add here will be used whenever a users loads a page in their browser.
3
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
4
import * as Sentry from '@sentry/nextjs';
5

6
if (!!process.env.NEXT_PUBLIC_SENTRY_DSN) {
7
  Sentry.init({
8
    // Setting this option to true will print useful information to the console while you're setting up Sentry.
9
    debug: false,
10

11
    dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
12
    // You can remove this option if you're not planning to use the Sentry Session Replay feature:
13
    integrations: [
14
      Sentry.replayIntegration({
15
        blockAllMedia: true,
16
        // Additional Replay configuration goes in here, for example:
17
        maskAllText: true,
18
      }),
19
    ],
20

21
    replaysOnErrorSampleRate: 1,
22

23
    // This sets the sample rate to be 10%. You may want this to be 100% while
24
    // in development and sample at a lower rate in production
25
    replaysSessionSampleRate: 0.1,
26

27
    // Adjust this value in production, or use tracesSampler for greater control
28
    tracesSampleRate: 1,
29
  });
30
}
31

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.