Skip to content

Commit

Permalink
enable options.captureFailedHttpRequests
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Dec 12, 2022
1 parent f1d6ec1 commit 8da337d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions flutter/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Future<void> setupSentry(AppRunner appRunner) async {
options.captureFailedHttpRequests = true;
options.maxRequestBodySize = MaxRequestBodySize.always;
options.maxResponseBodySize = MaxResponseBodySize.always;
options.captureFailedHttpRequests = true;
options.recordHttpBreadcrumbs = true;
},
// Init your App.
Expand Down
3 changes: 2 additions & 1 deletion min_version_test/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Future<void> setupSentry(AppRunner appRunner) async {
// going to log too much for your app, but can be useful when figuring out
// configuration issues, e.g. finding out why your events are not uploaded.
options.debug = true;
options.captureFailedHttpRequests = true;
},
// Init your App.
appRunner: appRunner);
Expand Down Expand Up @@ -111,7 +112,7 @@ class _MyHomePageState extends State<MyHomePage> {
_counter++;

final dio = Dio();
dio.addSentry(captureFailedRequests: true);
dio.addSentry();
final log = Logger('_MyHomePageState');

try {
Expand Down

0 comments on commit 8da337d

Please sign in to comment.