disable sentry session tracking
This commit is contained in:
parent
c2972ee78f
commit
f141804893
|
@ -2,8 +2,9 @@ import * as Sentry from '@sentry/nextjs';
|
|||
import { getSentryTunnelUrl } from 'utils/common/apiUtil';
|
||||
import { getUserAnonymizedID } from 'utils/user';
|
||||
|
||||
|
||||
const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN ?? 'https://860186db60c54c7fbacfe255124958e8@errors.ente.io/4';
|
||||
const SENTRY_DSN =
|
||||
process.env.NEXT_PUBLIC_SENTRY_DSN ??
|
||||
'https://860186db60c54c7fbacfe255124958e8@errors.ente.io/4';
|
||||
const SENTRY_ENV = process.env.NEXT_PUBLIC_SENTRY_ENV ?? 'development';
|
||||
|
||||
Sentry.setUser({ id: getUserAnonymizedID() });
|
||||
|
@ -13,6 +14,7 @@ Sentry.init({
|
|||
environment: SENTRY_ENV,
|
||||
release: process.env.SENTRY_RELEASE,
|
||||
attachStacktrace: true,
|
||||
autoSessionTracking: false,
|
||||
tunnel: getSentryTunnelUrl(),
|
||||
// ...
|
||||
// Note: if you want to override the automatic release value, do not set a
|
||||
|
|
Loading…
Reference in a new issue