impr(enso-org/cloud-v2#1047): Enable Sentry distributed tracing (#9661)

Enables distributed tracing for Sentry. Enables profiling information collection for calls to backend APIs, which means that traces/errors can be correlated across the frontend and backend now.
This commit is contained in:
Nikita Pekin 2024-04-09 19:02:31 +03:00 committed by GitHub
parent 32df870ad0
commit 7cf512ec6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,8 +54,10 @@ function run(props: app.AppProps) {
reactRouter.matchRoutes reactRouter.matchRoutes
), ),
}), }),
new sentry.BrowserProfilingIntegration(),
new sentry.Replay(), new sentry.Replay(),
], ],
profilesSampleRate: SENTRY_SAMPLE_RATE,
tracesSampleRate: SENTRY_SAMPLE_RATE, tracesSampleRate: SENTRY_SAMPLE_RATE,
tracePropagationTargets: [process.env.ENSO_CLOUD_API_URL.split('//')[1] ?? ''], tracePropagationTargets: [process.env.ENSO_CLOUD_API_URL.split('//')[1] ?? ''],
replaysSessionSampleRate: SENTRY_SAMPLE_RATE, replaysSessionSampleRate: SENTRY_SAMPLE_RATE,