Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(observability): move connectivity filter doc comment to its definition

Steven Enamakela4f49b3c0e8a
diff --git a/crates/openhuman-core/src/core/observability.rs b/crates/openhuman-core/src/core/observability.rs
index 66a9c99b72..261e7a9f63 100644
--- a/crates/openhuman-core/src/core/observability.rs
+++ b/crates/openhuman-core/src/core/observability.rs
@@ -3343,12 +3343,6 @@ pub fn is_user_config_provider_event(event: &sentry::protocol::Event<'_>) -> boo
false
}
-/// Defense-in-depth `before_send` filter for **connectivity/network flakiness**
-/// events — transient, self-resolving failures like timeouts, gateways, and
-/// "Failed to fetch" messages from the frontend.
-///
-/// Primary suppression lives at the caller sites. This is the outermost net for
-/// any future call site that bypasses those classifiers. Target: ~8 issues.
#[cfg(feature = "crash-reporting")]
include!("observability_connectivity.rs");
diff --git a/crates/openhuman-core/src/core/observability_connectivity.rs b/crates/openhuman-core/src/core/observability_connectivity.rs
index 71e3860c14..ae22d56270 100644
--- a/crates/openhuman-core/src/core/observability_connectivity.rs
+++ b/crates/openhuman-core/src/core/observability_connectivity.rs
@@ -1,3 +1,6 @@
+/// Defense-in-depth `before_send` filter for connectivity and network failures.
+/// Primary suppression lives at the caller sites; this remains an outer guard
+/// for any future call site that bypasses those classifiers.
pub fn is_connectivity_event(event: &sentry::protocol::Event<'_>) -> bool {
let texts: Vec<&str> = {
let mut v = Vec::with_capacity(2 + event.exception.values.len());