Search packages, repositories and app categories

Package detailsv10.2.0

sentry_dio

An integration which adds support for performance tracing for the Dio package.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
273K
Likes
48
Pub points
160

Install package

flutter pub add sentry_dio

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Sentry Dio is a Flutter/Dart package that integrates Sentry with the Dio HTTP client to enable performance tracing for network requests. It automatically captures request and response details, including timing, status codes, and errors, providing deep insights into API performance. This integration helps developers monitor and diagnose issues in real-time across multiple platforms. The package is designed to work seamlessly with existing Dio setups, requiring minimal configuration. It supports Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform applications needing robust monitoring.

Use cases

  • Monitoring API performance
  • Tracking HTTP request errors
  • Diagnosing slow network calls
  • Integrating with existing Dio implementations
  • Real-time error reporting across platforms

Key features

  • Automatic performance tracing
  • Request/response metadata collection
  • Seamless Dio integration
  • Cross-platform support
  • Error and latency tracking

Suitable for

  • Flutter apps using Dio
  • Teams focused on performance monitoring
  • Developers needing real-time error insights
  • Cross-platform mobile and web apps
  • Applications requiring detailed API observability

Considerations

  • Requires Sentry SDK setup
  • May increase payload size slightly
  • Needs proper configuration for optimal results
  • Not needed for non-Dio HTTP clients
  • Dependent on Sentry backend availability

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Sentry

Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions

Sentry SDK for Dart and Flutter

codecov

Package CI status Likes Downloads Analysis
sentry build likes dm pub points
sentry_flutter build likes dm pub points
sentry_logging build likes dm pub points
sentry_dio build likes dm pub points
sentry_link build likes dm pub points
sentry_file build likes dm pub points
sentry_sqflite build likes dm pub points
sentry_drift build likes dm pub points
sentry_hive build likes dm pub points
sentry_isar build likes dm pub points

Releases

This repo uses the following ways to release SDK updates:

  • Pre-release: We create pre-releases (alpha, beta, RC,…) for larger and potentially more impactful changes, such as new features or major versions.
  • Latest: We continuously release major/minor/hotfix versions from the main branch. These releases go through all our internal quality gates and are very safe to use and intended to be the default for most teams.
  • Stable: We promote releases from Latest when they have been used in the field for some time and in scale, considering time since release, adoption, and other quality and stability metrics. These releases will be indicated on the releases page (https://github.com/getsentry/sentry-dart/releases/) with the Stable suffix.

Usage

For detailed usage, check out the inner dart, flutter, logging, dio, file, sqflite, drift, hive and isar README's or our Resources section below.

Blog posts

Introducing Mobile Screenshots.

With Flutter and Sentry, You Can Put All Your Eggs in One Repo.

A Sanity Listicle for Mobile Developers.

Supporting Native Android Libraries Loaded From APKs.

Resources

  • Flutter docs
  • Dart docs
  • Discussions
  • Discord Chat
  • Stack Overflow
  • X Follow

Apple Privacy Manifest

Starting with May 1st 2024, iOS apps are required to declare approved reasons to access certain APIs. This also includes third-party SDKs. If you are using sentry-flutter, update to at least version 7.17.0 to get the updated sentry-cocoa native iOS/macOS SDK, supporting the privacy manifest. All other used dependencies with file declarations are supported by Sentry packages. Run flutter pub upgrade to the latest compatible versions of all the dependencies.

SDK Size Overhead

The Sentry SDKs for Dart and Flutter typically add approximately 1-1.5 MB to an app’s binary size. The exact impact may vary depending on the device architecture.

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package