This package includes a collection of community maintained integrations for Sentry.
Consider using sentry_plus
for additionaly integrations.
This includes even more information for event.
- Environment information for Windows
- Environment information for Linux
- More information which is available in newer Flutter versions.
import 'package:sentry_flutter_plus/sentry_flutter_plus.dart';
Future<void> main() {
return SentryFlutter.init(
(options) {
options.addSentryFlutterPlus();
// other configuration omitted
},
appRunner: () {
// app code
},
);
}
Adds automatic breadcrumbs for selecting platform menu (see PlatformMenuBar).
Marks dependencies automatically as not in app for stacktraces.
Automatically collect breadcrumbs and performance traces for platform communication through MethodChannels.
Note There's also the automatic integration available for this. Make sure to not use both.
This can be used to monitor messages from native to Flutter through message channels.
final channel = MethodChannel('method_channel_name', const StandardMethodCodec(), SentryBinaryMessenger());
This code differs from Sentrys design and support philosophy:
- This code doesn't try to be as backwards compatible as possible. This enables this code to make use of newer features.
- This code doesn't try to stay free of dependencies. Low quality dependencies are still not allowed, though.
- This code has no guarantees for API stability
- When comparable features are implemented in (or moved to) Sentry, it will be removed from this package.
- Features & integrations should be easy to integrate and use