Closed tomtaila closed 2 years ago
The problem is that you are trying to copyWith the throwable
, this is used (internally) before the event runs the beforeSend
callback to prepare the event with all the data that the throwable
holds, so it won't have any effect.
In case you want to do something with the exception and stack trace in the throwable
, you should use the copyWith
with the exceptions
property of the event.
If you do for example, return event.copyWith(logger: 'its working');
, it'd work.
For breadcrumbs there's indeed, a bug, being fixed here https://github.com/getsentry/sentry-dart/pull/982
Thank you @marandaneto
Platform:
IDE:
split-debug-info and obfuscate (Flutter Android or iOS) or CanvasKit (Flutter Web):
Platform installed with:
Output of the command
flutter doctor -v
below:The output goes here...
The version of the SDK (See pubspec.lock): 6.9.0
I have the following issue:
beforeSend
has no effect what-so-ever.My current logic is:
The description goes here ...
Steps to reproduce:
Actual result:
Expected result:
throwable
property has been modified.Note: I think the same is happening for
beforeBreadcrumbs
too.