measure rust performance in dev and nightly

This commit is contained in:
Kiril Videlov 2024-01-26 13:48:06 +01:00 committed by Kiril Videlov
parent 23e7cd7409
commit f86935d335

View File

@ -32,6 +32,10 @@ pub fn init(package_info: &PackageInfo) -> ClientInitGuard {
before_send: Some({ before_send: Some({
Arc::new(|event| SENTRY_LIMIT.get_or_init(|| RateLimiter::direct(SENTRY_QUOTA)).check().is_ok().then_some(event))}), Arc::new(|event| SENTRY_LIMIT.get_or_init(|| RateLimiter::direct(SENTRY_QUOTA)).check().is_ok().then_some(event))}),
attach_stacktrace: true, attach_stacktrace: true,
traces_sample_rate: match package_info.name.as_str() {
"GitButler Dev" | "GitButler Nightly" => 0.2_f32,
_ => 0.0_f32,
},
default_integrations: true, default_integrations: true,
..Default::default() ..Default::default()
})) }))