-
Notifications
You must be signed in to change notification settings - Fork 23
Deprecation of Community Plugin #108
Description
The Datadog team has released an official version of their SDK. Since they are a team and very close to the APIs and features of the iOS and Android SDKs, it is with a heavy and joyful heart that version 2 of datadog_flutter will be the final release of this community package.
The migration is not exactly one to one. Below is a migration guide, however, as the new SDK has just reached beta, it is impartial (add more in the comments and I'll edit this list as we discover disparity). If you have questions about the new SDK or APIs, please open issues on the new repo. Good luck @fuzzybinary @xgouchet and thanks for your work in releasing this new SDK.
Thank you to everyone for your support and contributions to this plugin, especially @btrautmann @charafau @QuirijnGB.
Migration Guide (WIP)
- Rename
datadog_fluttertodatadog_flutter_plugin. The Datadog team has decided to not use thedatadog_flutterpackage name. - The initialization API is extremely similar, however, you cannot pass keys for different platforms. Instead, consider
applicationId: Platform.isAndroid ? androidKey : iosKey. For apps that use web/linux/mac/windows too, you'll have to be more creative with your solution. - Use the global logger in
DatadogSdk.instance.logs. While you can still use the individual logger architecture, the class isn't publicly exposed (Expose DdLogs publicly DataDog/dd-sdk-flutter#121) as of writing. - Web is not supported by the new SDK yet. Do not migrate if you use Flutter web.
- HTTP tracing has been mostly completely rewritten (cc Loading Type and Loading Time not show in RUM #104). Please review the new datadog_trackiing_http_client package to integrate with your app. Don't forget to enable automatic capture.
DatadogObserveris nowDatadogNavigationObserver