-
-
Notifications
You must be signed in to change notification settings - Fork 255
Should BeforeSendCallback
have non-nullable hint?
#1478
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
Comments
You are welcome and looking forward to the next release! |
|
@marandaneto Don't recall either, maybe took the API design from another SDK and didn't think about this case. 🤔 |
@fzyzcjy Thanks for bringing this up. The new API will be part of the 8.0.0 release. |
🎉 |
* Fix beforeSend signature in code snippets for dart platforms A breaking change introduced in v8.0.0: getsentry/sentry-dart#1478 * Update beforeBreadcrumb signature for dart platforms (pt1) Co-authored-by: Giancarlo Buenaflor <[email protected]> * Update beforeBreadcrumb signature for dart platforms (pt2) Co-authored-by: Giancarlo Buenaflor <[email protected]> --------- Co-authored-by: Giancarlo Buenaflor <[email protected]>
When implementing the attachment mechanism suggested by @marandaneto in #683, I realize BeforeSendCallback has a nullable Hint. If the passed-in hint is null, I have no way to attach an attachment. On the other hand, I quickly glanced through the source code and it seems that it guarantees it is not null (by providing a default value). So shall we mark it as non-null?
Platform
Dart
Obfuscation
Enabled
Debug Info
Enabled
Doctor
Version
latest
Steps to Reproduce
Expected Result
Actual Result
Are you willing to submit a PR?
None
The text was updated successfully, but these errors were encountered: