Overview
Sentry is a crash reporting library for Dart that captures and transmits runtime errors and exceptions to Sentry.io, enabling developers to monitor and debug issues in real time. It supports Dart VM and web platforms, providing detailed stack traces, context data, and performance insights. The library integrates seamlessly into Dart applications, helping teams identify and resolve bugs quickly. For Flutter apps, the dedicated sentry_flutter package is recommended instead.
Use cases
- Real-time crash monitoring
- Error tracking in web and server-side Dart
- Performance issue detection
- Debugging production issues
- Integrating with Sentry.io dashboards
Key features
- Cross-platform support (Web, VM)
- Automatic error capture
- Context and breadcrumb logging
- Integration with Sentry.io backend
- Custom event tagging and filtering
Suitable for
- Dart applications on web and server
- Teams using Sentry.io for monitoring
- Developers needing crash analytics
- Projects requiring detailed error context
- Applications targeting multiple platforms
Considerations
- Not intended for Flutter apps (use sentry_flutter instead)
- Requires Sentry.io account and project setup
- May increase app bundle size slightly
- Needs proper configuration for optimal performance
- Limited native mobile features compared to sentry_flutter