From e2907983d19d9b1ab9546c2fac62dc5382e0c0c7 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Tue, 7 May 2024 09:35:52 -0600 Subject: [PATCH] don't report hangs on stable (#11494) Release Notes: - N/A --- crates/zed/src/reliability.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/zed/src/reliability.rs b/crates/zed/src/reliability.rs index 29c78d916d62e454244adc02688c0e6e6ef4c269..f3d23233c7b910a5bce71940a0b310a1414a9ef0 100644 --- a/crates/zed/src/reliability.rs +++ b/crates/zed/src/reliability.rs @@ -183,6 +183,14 @@ pub fn monitor_main_thread_hangs( installation_id: Option, cx: &AppContext, ) { + // This is too noisy to ship to stable for now. + if !matches!( + ReleaseChannel::global(cx), + ReleaseChannel::Dev | ReleaseChannel::Nightly | ReleaseChannel::Preview + ) { + return; + } + use nix::sys::signal::{ sigaction, SaFlags, SigAction, SigHandler, SigSet, Signal::{self, SIGUSR2},