sentry-tauri

An experimental Tauri Plugin for Sentry.

Captures and reports to Sentry:

Installation

Add the plugin as a dependency in Cargo.toml:

toml [dependencies] sentry = "0.27" sentry-tauri = "0.1"

rust fn main() { sentry_tauri::init( sentry::release_name!(), |_| { sentry::init(( "__YOUR_DSN__", sentry::ClientOptions { release: sentry::release_name!(), ..Default::default() }, )) }, |sentry_plugin| { tauri::Builder::default() .plugin(sentry_plugin) .run(tauri::generate_context!()) .expect("error while running tauri application"); }, ); }

What is going on here? 🤔

Points to Note 📝

Example App

Clone this repository and install dependencies:

```shell

cd examples/basic-app yarn install ```

In examples/basic-app/src-tauri/src/main.rs replace __YOUR_DSN__ with your DSN

Run in development mode:

```shell

yarn tauri dev ```