fix(mobile): boot diagnostic as breadcrumb, not event — silence GOON-Q noise
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 <noreply@anthropic.com>
This commit is contained in:
parent
2b602beea5
commit
edbffc0fa7
1 changed files with 7 additions and 4 deletions
|
|
@ -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' },
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue