mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-19 23:52:05 +03:00
measure rust performance in dev and nightly
This commit is contained in:
parent
23e7cd7409
commit
f86935d335
@ -32,6 +32,10 @@ pub fn init(package_info: &PackageInfo) -> ClientInitGuard {
|
||||
before_send: Some({
|
||||
Arc::new(|event| SENTRY_LIMIT.get_or_init(|| RateLimiter::direct(SENTRY_QUOTA)).check().is_ok().then_some(event))}),
|
||||
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::default()
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user