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.

Copied
#include <sentry.h>

sentry_shutdown();

Calling sentry_shutdown() before exiting the application is critical to avoid data loss.

After shutdown, the client cannot be used anymore. It's important to only call sentry_shutdown() immediately before shutting down the application.

You can edit this page on GitHub.
Package:
github:getsentry/sentry-native
Version:
0.4.2
Repository:
https://github.com/getsentry/sentry-native