Shutdown and Draining

The default behavior of most SDKs is to send out events over the network asynchronously in the background. This means that some events might be lost if the application shuts down unexpectedly. The SDKs provide mechanisms to cope with this.

The Xamarin SDK automatically shuts down and waits ShutdownTimeout seconds before that happens when the Init's return:

Copied
SentryXamarin.Init(...));
// App code

In case of an unhandled exception that will crash the app, the SDK automatically disposes itself.

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").