🌱 尝试引入Sentry进行分析

This commit is contained in:
BTMuli
2025-12-29 18:24:21 +08:00
parent e247c6a058
commit cfea47f11c
13 changed files with 1221 additions and 40 deletions

View File

@@ -6,5 +6,14 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
let _guard = sentry::init((
"https://8d59057c08ff381e1fccf3c9e97c6a6c@o4510617609175040.ingest.de.sentry.io/4510617659506768",
sentry::ClientOptions {
release: sentry::release_name!(),
// Capture user IPs and potentially sensitive headers when using HTTP server integrations
// see https://docs.sentry.io/platforms/rust/data-management/data-collected for more info
send_default_pii: true,
..Default::default()
}));
teyvat_guide_lib::run()
}