We have some reports of the MethodChannel becoming disconnected on Android, which will cause methods sent to the Datadog Flutter Plugin to throw MissingPluginException. We do not handle / catch these errors, and instead pass them on to Flutter by design.
However, if a user has setup errors to be automatically logged to Datadog, it's possible these errors can result in an infiniate loop attempting to send the error to Datadog.
This change prevents that loop by looking for MissingPluginException that contains our method channel datadog_sdk_plugin and discards it.
Review checklist
[ ] This pull request has appropriate unit and / or integration tests
[ ] This pull request references a Github or JIRA issue
What and why?
We have some reports of the MethodChannel becoming disconnected on Android, which will cause methods sent to the Datadog Flutter Plugin to throw
MissingPluginException
. We do not handle / catch these errors, and instead pass them on to Flutter by design.However, if a user has setup errors to be automatically logged to Datadog, it's possible these errors can result in an infiniate loop attempting to send the error to Datadog.
This change prevents that loop by looking for
MissingPluginException
that contains our method channeldatadog_sdk_plugin
and discards it.Review checklist