don't report hangs on stable (#11494)

Conrad Irwin created

Release Notes:

- N/A

Change summary

crates/zed/src/reliability.rs | 8 ++++++++
1 file changed, 8 insertions(+)

Detailed changes

crates/zed/src/reliability.rs 🔗

@@ -183,6 +183,14 @@ pub fn monitor_main_thread_hangs(
     installation_id: Option<String>,
     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},