-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Sentry for error tracking (#189)
- Loading branch information
Showing
6 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,26 @@ import 'package:mobile_nebula/screens/MainScreen.dart'; | |
import 'package:mobile_nebula/screens/EnrollmentScreen.dart'; | ||
import 'package:mobile_nebula/services/settings.dart'; | ||
import 'package:flutter_web_plugins/url_strategy.dart'; | ||
import 'package:sentry_flutter/sentry_flutter.dart'; | ||
|
||
//TODO: EventChannel might be better than the stream controller we are using now | ||
|
||
void main() { | ||
Future<void> main() async { | ||
usePathUrlStrategy(); | ||
runApp(Main()); | ||
await SentryFlutter.init( | ||
(options) { | ||
options.dsn = 'https://[email protected]/4508132321001472'; | ||
// Capture all traces. May need to adjust if overwhelming | ||
options.tracesSampleRate = 1.0; | ||
// For each trace, capture all profiles | ||
options.profilesSampleRate = 1.0; | ||
}, | ||
appRunner: () => runApp(Main()), | ||
); | ||
|
||
// or define SENTRY_DSN via Dart environment variable (--dart-define) | ||
} | ||
|
||
//TODO: EventChannel might be better than the stream controller we are using now | ||
|
||
class Main extends StatelessWidget { | ||
// This widget is the root of your application. | ||
@override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters