From edbffc0fa72628441be02a865529762590053ea3 Mon Sep 17 00:00:00 2001 From: jtrzupek Date: Mon, 8 Jun 2026 10:04:21 +0200 Subject: [PATCH] =?UTF-8?q?fix(mobile):=20boot=20diagnostic=20as=20breadcr?= =?UTF-8?q?umb,=20not=20event=20=E2=80=94=20silence=20GOON-Q=20noise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit captureMessage('mobile boot OK', info) fired an event every launch → 171 events /13 users polluting the Sentry issue list. Diagnostic served its purpose (SDK confirmed sending). addBreadcrumb keeps boot context attached to real errors without creating standalone issues. Co-Authored-By: Claude Opus 4.8 --- mobile/App.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mobile/App.tsx b/mobile/App.tsx index 4a2ebd2..93ee726 100644 --- a/mobile/App.tsx +++ b/mobile/App.tsx @@ -63,11 +63,14 @@ if (SENTRY_DSN) { // sendDefaultPii=false (default) — IP / user-agent / cookies nie idą do Sentry. // attachScreenshot=false — scena thumbnails / video frames nie wyciekną w error reports. }); - // Capture jednorazowo przy bundle load (przed `App` render). Sentry RN buforuje - // events do flush przy next tick — wystartuje równo z bridge ready. - Sentry.captureMessage('mobile boot OK', { + // Boot breadcrumb (NIE event). Wcześniej `captureMessage('mobile boot OK', level:info)` + // tworzył osobny event przy KAŻDYM starcie → 171 eventów / 13 userów szumu w dashboardzie + // (GOON-Q). Diagnostyk spełnił rolę — wiemy że SDK wysyła. Breadcrumb zostawia kontekst + // bootu doczepiony do realnych błędów, ale nie zaśmieca listy issue. + Sentry.addBreadcrumb({ + category: 'boot', + message: 'mobile boot OK', level: 'info', - tags: { source: 'boot' }, }); }