-
Notifications
You must be signed in to change notification settings - Fork 46
feat: observability #378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: observability #378
Conversation
robbe-jansens-icapps
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor comments but nice implementation overall 👌
| @override | ||
| void initState() { | ||
| super.initState(); | ||
| WidgetsBinding.instance.addPostFrameCallback((_) => getIt<SentryPerformanceLogger>().finishAppLoadTransaction()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move this to the ViewModel
| await SentryFlutter.init( | ||
| (options) { | ||
| options | ||
| ..dsn = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should add this to the FlavorValues with an empty string as default.
| return event; | ||
| } | ||
| ..diagnosticLevel = SentryLevel.error | ||
| ..environment = 'development'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also get this one as a getter on the Flavor enum.
Added: