tmail-flutter icon indicating copy to clipboard operation
tmail-flutter copied to clipboard

TF-4136 Add sentry for web

Open dab246 opened this issue 2 months ago • 19 comments

Issue

Fixes #4136

Dependency

This PR depends on:

  • Need merged: https://github.com/linagora/jmap-dart-client/pull/117

Description

This pull request integrates Sentry error reporting to capture, track, and analyze runtime issues across the Flutter app.
It includes detailed information for each reported event such as stack trace, breadcrumbs, contexts, and custom logs — helping developers debug production errors more efficiently.

Resolved

1. Issues Captured

Sentry successfully records exceptions triggered within the application:

Captured issues

2. Issue Details

Detailed event information is available, including device data, environment, and app version:

Issue detail

3. Stack Trace

Captured stack trace for debugging and pinpointing the root cause:

Stack trace

4. Breadcrumbs

Breadcrumbs show user actions and app events leading up to the error:

Breadcrumbs

5. Contexts: Reported Exception

Captured context includes runtime environment, user, and device information:

Contexts

6. Logs

Sentry integrates with Sentry.logger and captureMessage to record structured logs:

Logs

Summary by CodeRabbit

  • Chores
    • Updated dio HTTP client library to version 5.2.0
    • Refactored application startup flow
    • Added error tracking infrastructure with new environment configuration options

✏️ Tip: You can customize this high-level summary in your review settings.

dab246 avatar Oct 31 '25 09:10 dab246