From d1ce2154c2a0c0b6f8c6d22e89de32aa130a9416 Mon Sep 17 00:00:00 2001 From: Alphons <93847055+Crazypersonalph@users.noreply.github.com> Date: Fri, 9 Feb 2024 19:20:33 +0800 Subject: [PATCH] =?UTF-8?q?clean=20up=20sentry=20stuff,=20fix=20all=20of?= =?UTF-8?q?=20my=20quota=20being=20used=20=F0=9F=92=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SEQTA.ts | 7 +------ src/background.ts | 9 +-------- src/interface/main.tsx | 9 +-------- 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 11448a35..cc96e589 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -756,14 +756,9 @@ function main(storedSetting: SettingsState) { if (storedSetting.telemetry && storedSetting.onoff) { Sentry.init({ dsn: "https://54bdb68e80b45182ded22ecf9fe9529c@o4506347383291904.ingest.sentry.io/4506347462393856", - integrations: [ - Sentry.replayIntegration(), - ], + integrations: [Sentry.browserTracingIntegration()], // Performance Monitoring tracesSampleRate: 1.0, // Capture 100% of the transactions - // Session Replay - replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production. - replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. }) } diff --git a/src/background.ts b/src/background.ts index 5aee0441..b8e1b774 100644 --- a/src/background.ts +++ b/src/background.ts @@ -6,17 +6,10 @@ browser.storage.local.get([ "telemetry" ]).then((telemetry) => { Sentry.init({ dsn: "https://54bdb68e80b45182ded22ecf9fe9529c@o4506347383291904.ingest.sentry.io/4506347462393856", integrations: [ - new Sentry.BrowserTracing({ - // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled - tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/], - }), - new Sentry.Replay(), + Sentry.browserTracingIntegration() ], // Performance Monitoring tracesSampleRate: 1.0, // Capture 100% of the transactions - // Session Replay - replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production. - replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. }); } }) diff --git a/src/interface/main.tsx b/src/interface/main.tsx index 51326b7b..c146b8db 100644 --- a/src/interface/main.tsx +++ b/src/interface/main.tsx @@ -14,17 +14,10 @@ browser.storage.local.get([ "telemetry" ]).then((telemetry) => { Sentry.init({ dsn: "https://4bc7197431b170218e15daba4095d08b@o4506347383291904.ingest.sentry.io/4506347394105344", integrations: [ - new Sentry.BrowserTracing({ - // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled - tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/], - }), - new Sentry.Replay(), + Sentry.browserTracingIntegration() ], // Performance Monitoring tracesSampleRate: 1.0, // Capture 100% of the transactions - // Session Replay - replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production. - replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. }); })