Overview
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