Skip to content

feat: add offline Sentry error queue - #71

Merged
JamesEjembi merged 1 commit into
Lumina-etwork:mainfrom
OkeyAmy:implement-offline-error-queuing-in-sentry
Jun 24, 2026
Merged

feat: add offline Sentry error queue#71
JamesEjembi merged 1 commit into
Lumina-etwork:mainfrom
OkeyAmy:implement-offline-error-queuing-in-sentry

Conversation

@OkeyAmy

@OkeyAmy OkeyAmy commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a client-side Sentry wrapper that queues offline error records in IndexedDB under sentry/offlineQueue, with 500-record LRU capacity, 5-second deduplication, exponential retry backoff, uptime reset, and max-attempt dropping.
  • Add an application error boundary that uses the offline-aware queue and surfaces queued report counts with a retry fallback.
  • Install a connectivity bridge at the app provider root to replay queued errors when the browser comes back online.
  • Route WebSocket connection failures and telemetry API 5xx responses through the offline-aware Sentry queue.

Closes #53

@JamesEjembi JamesEjembi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JamesEjembi
JamesEjembi merged commit 275a56e into Lumina-etwork:main Jun 24, 2026
1 check passed
@OkeyAmy
OkeyAmy deleted the implement-offline-error-queuing-in-sentry branch June 24, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sentry Error Boundary with Offline Queue and Network-Aware Retry

2 participants