rollbar / rollbar-flutter

Rollbar for Dart and Flutter
https://docs.rollbar.com/docs/flutter
MIT License
21 stars 27 forks source link

Please add support sending additional data when reporting an item #99

Open jaredanderton opened 1 year ago

jaredanderton commented 1 year ago

Other versions of this SDK (android, ios, php, javascript to name a few) support an extra argument to send additional data when reporting log, debug, warn, error, critical items.

In 3 different Flutter apps now, I have manually added the Android and iOS SDK directly and created a method channel to report items, instead of using the Flutter SDK. This is a lot of extra work. But I've done it because the interface in the Flutter SDK doesn't support additional data.

For example, something like

Rollbar.error(
  message,
  StackTrace.current,
  {"foo": "bar"} 
);

Please, please, please add this support

ghost commented 1 year ago

@jaredanderton are you able to log errors in release build of iOS (testflight) my environment is developement. It is working in debug mode

diegoalex commented 1 year ago

I see on the documentation that is possible to send the "scope" in other languages (JS, Ruby) but not in Flutter

Rollbar.scope({person: {id: "123"}}).info("User logged in");