mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-05-10 00:44:04 +08:00
🌱 尝试引入Sentry进行分析
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user