You cannot use the `#[tokio::main]` macro when using the [[Sentry]] client. See [Async Main Function](https://docs.sentry.io/platforms/rust/#async-main-function) in their official docs for more information.
If you fail to follow that as documented, it will work but it seems that traces will be messed up.
```rust
fn main() {
let _guard = sentry::init(("
https://<your-dsn>", sentry::ClientOptions {
release: sentry::release_name!(),
send_default_pii: false,
..Default::default()
}));
tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()
.unwrap()
.block_on(async {
// implementation of main
});
}
```