This commit is contained in:
parent
8b1502fe6c
commit
fa1ac8ff99
2 changed files with 39 additions and 0 deletions
|
@ -317,6 +317,7 @@ rev: 2025-01-30
|
|||
- [rust-script](./development/rust-script.md)
|
||||
- [renovatebot](./development/renovate.md)
|
||||
- [hl](./development/hl.md)
|
||||
- [Bugsink](./development/bugsink.md)
|
||||
|
||||
## Media
|
||||
- [yt-dlp](./media/yt-dlp.md)
|
||||
|
|
38
technology/applications/development/bugsink.md
Normal file
38
technology/applications/development/bugsink.md
Normal file
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
obj: application
|
||||
website: https://www.bugsink.com
|
||||
repo: https://github.com/bugsink/bugsink
|
||||
---
|
||||
|
||||
# Bugsink
|
||||
Self‑Hosted Error Tracking, Sentry‑SDK Compatible
|
||||
|
||||
## Usage
|
||||
### Rust
|
||||
Add `sentry` to your `Cargo.toml`:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
sentry = "0.41.0"
|
||||
```
|
||||
|
||||
Initialize sentry before any other `main`:
|
||||
|
||||
```rs
|
||||
fn main() {
|
||||
let _guard = sentry::init((
|
||||
"<YOUR_DSN>",
|
||||
sentry::ClientOptions {
|
||||
release: sentry::release_name!(),
|
||||
send_default_pii: true,
|
||||
..Default::default()
|
||||
},
|
||||
));
|
||||
|
||||
tokio::runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
.build()
|
||||
.unwrap()
|
||||
.block_on(async_main());
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue