From e798634e42dfc6fe5ab808c38ace102d0f72cc6a Mon Sep 17 00:00:00 2001 From: Curry Yang <163384738+CurryYangxx@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:14:10 +0800 Subject: [PATCH] chore: enable sentry tracing (#7688) * chore: enable sentry tracing * add comment * change to 10 percent --------- Co-authored-by: jackkav --- packages/insomnia/src/ui/sentry.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/insomnia/src/ui/sentry.ts b/packages/insomnia/src/ui/sentry.ts index 4b28dc42b..ecf775fe7 100644 --- a/packages/insomnia/src/ui/sentry.ts +++ b/packages/insomnia/src/ui/sentry.ts @@ -20,6 +20,13 @@ function sentryWatchUserInfo() { } export function initializeSentry() { - Sentry.init(SENTRY_OPTIONS); + Sentry.init({ + ...SENTRY_OPTIONS, + // enable sentry tracing + integrations: [Sentry.browserTracingIntegration()], + // set 0.1 sample rate for traces, only send 10% of traces, and check whether the limit is exceeded + // https://konghq.sentry.io/settings/billing/overview/?category=transactions + tracesSampleRate: 0.1, + }); sentryWatchUserInfo(); }