Update Rust crate sentry to 0.49.0 #61

Merged
redbinder0526 merged 2 commits from renovate/sentry-0.x into v0 2026-08-08 07:48:21 +02:00
Showing only changes of commit 52893fb728 - Show all commits

fix sentry integration
All checks were successful
Build and Test / build-editions (minecraft-wiiu) (push) Successful in 8m39s
Build and Test / build-editions (sonic-transformed) (push) Successful in 8m41s
Build and Test / build-editions (fast-racing-neo) (push) Successful in 8m46s
Build and Test / build-editions (mario-tennis) (push) Successful in 8m49s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Successful in 8m50s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Successful in 9m0s
Build and Test / build-editions (splatoon) (push) Successful in 7m6s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Successful in 9m12s
Build and Test / build-editions (terraria) (push) Successful in 6m0s
Build and Test / build-editions (splatoon-testfire) (push) Successful in 6m57s
Build and Test / build-editions (wii-u-chat) (push) Successful in 4m51s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Successful in 9m25s

redbinder0526 2026-08-08 07:38:08 +02:00

View file

@ -364,15 +364,14 @@ pub fn env_var(name: &'static str) -> Result<String, EnvVarError> {
pub async fn with_setup(f: impl AsyncFnOnce() -> anyhow::Result<()>) {
println!("setting up logger and dotenv");
let options = sentry::ClientOptions::new()
.release(rnex_release())
.send_default_pii(true);
dotenv::dotenv().ok();
let _maybe_sentry = if let Ok(sentry_url) = std::env::var("SENTRY_URL") {
Some(sentry::init((
sentry_url,
sentry::ClientOptions {
release: Some(Cow::Owned(rnex_release())),
send_default_pii: true,
..Default::default()
},
options
)))
} else {
None