sentry_flutter
10.6.0, released today by sentry.io
Sentry SDK for Flutter to capture errors, crashes and performance data across platforms.
What it does
Provides automatic error and exception reporting for Flutter apps, including native crashes on Android and iOS. It also supports performance tracing, navigation monitoring, and experimental session replay on web.
AI-written summary of version 10.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need crash reporting and error aggregation for a Flutter app
- You want performance monitoring and breadcrumb tracking
- You require native crash capture on Android/iOS
- You plan to use Sentry’s session replay features
Skip it when
- You prefer a self‑hosted or different analytics backend
- Bundle size must be minimal and you don’t need crash reporting
- You are not using Sentry as a service
Strengths
- Full‑stack error and crash capture (Dart + native)
- Supports Android, iOS, web, macOS, Windows, Linux
- Performance tracing and navigation monitoring
- Experimental session replay for web
Weaknesses
- Adds native SDK dependencies and increases app size
- Requires platform‑specific setup (SwiftPM, Gradle)
- Tied to Sentry service; not a generic logger
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 7
Add DSN in SentryFlutter.init, configure native SDKs (Swift Package Manager for iOS/macOS, Gradle for Android), optionally add permissions for network access.
import 'package:flutter/widgets.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
Future<void> main() async {
await SentryFlutter.init(
(options) => options.dsn = 'https://example@sentry.io/your-dsn',
appRunner: () => runApp(MyApp()),
);
}Alternatives
Packages that do the same job and could replace sentry_flutter.
- appsflyer_sdk
Flutter plugin for the AppsFlyer mobile attribution and analytics SDK.
88Compare - singular_flutter_sdk
A Flutter plugin for the Singular SDK to track events, revenue, and deep links.
66Compare - repro_flutter
A plugin for using the Repro Android/iOS SDK in Flutter applications.
65Compare - build_pipe
A pipeline tool to build and publish Flutter apps across target platforms.
74Compare
Works with
Packages commonly used together with sentry_flutter: ones it builds on, ones built on it, and its own family.
- websentry_flutter depends on itLightweight bindings for browser APIs via JS interop
- ffisentry_flutter depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- jnisentry_flutter depends on itProvides Dart/Flutter bindings to call native Java code via JNI.
- package_info_plussentry_flutter depends on itFlutter plugin to query app package info like version, build number and installer store.
- sentrysentry_flutter depends on itCrash reporting and error tracking library for Dart and Flutter applications.
- sentry_dart_pluginSame familyUploads debug symbols and source maps to Sentry for server-side symbolication.
- sentry_dioSame familyAdds Sentry performance tracing and error capture to Dio HTTP requests.
- sentry_loggingSame familyAdds Sentry logging integration for the Dart logging package