Function init
Source pub fn init(config: Config) -> ClientInitGuard
Expand description
Initialize the Sentry client with the provided configuration and set up automatic error reporting.
§Arguments
config
- The configuration containing the public key and project ID.
§Returns
A ClientInitGuard
which, when dropped, will flush all events.