Update Analytics req + Fix versions list (#529)

* Update Analytics req + Fix versions list

* Fix sentry support

* Fix lint
This commit is contained in:
Geometrically authored and GitHub committed 2023-02-01 10:08:02 -07:00
1 parent 26533c47e7
commit afdab0300e
21 files changed
+441 -160

No files matched your search

+7 -1
View File
@@ -43,7 +43,13 @@ async fn main() -> std::io::Result<()> {
// DSN is from SENTRY_DSN env variable.
// Has no effect if not set.
let sentry = sentry::init(());
let sentry = sentry::init(sentry::ClientOptions {
release: sentry::release_name!(),
traces_sample_rate: 0.1,
enable_profiling: true,
profiles_sample_rate: 0.1,
..Default::default()
});
if sentry.is_enabled() {
info!("Enabled Sentry integration");
std::env::set_var("RUST_BACKTRACE", "1");