The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(observability): document transient failure classifiers
Steven Enamakel82f1a9606f61
diff --git a/crates/openhuman-core/src/core/observability_backend_event_classification.rs b/crates/openhuman-core/src/core/observability_backend_event_classification.rsindex 48fa912645..27688624db 100644--- a/crates/openhuman-core/src/core/observability_backend_event_classification.rs+++ b/crates/openhuman-core/src/core/observability_backend_event_classification.rs@@ -1,3 +1,6 @@++/// Transient backend API failures (gateway hiccups, scheduled downtime).+/// Match by event tags written by report_error at the authed_json call site.#[cfg(feature = "crash-reporting")]pub fn is_transient_backend_api_failure(event: &sentry::protocol::Event<'_>) -> bool {is_transient_domain_failure(event, "backend_api")diff --git a/crates/openhuman-core/src/core/observability_event_classification.rs b/crates/openhuman-core/src/core/observability_event_classification.rsindex 25cb1f51ab..d9f3026a37 100644--- a/crates/openhuman-core/src/core/observability_event_classification.rs+++ b/crates/openhuman-core/src/core/observability_event_classification.rs@@ -1,3 +1,21 @@++/// Returns true when a Sentry event is a per-attempt provider HTTP failure+/// that the reliable-provider layer already handles via retry + fallback.+///+/// The primary suppression lives at the call site+/// (`crate::inference::provider::http_error::should_report_provider_http_failure`),+/// which short-circuits transient codes before `report_error` ever fires.+/// This helper is intended for use inside the `sentry::ClientOptions`+/// `before_send` hook as defense-in-depth — it catches any future call+/// site that emits a `tracing::error!` with the same shape but bypasses+/// the classifier.+///+/// Match criteria (all required):+/// - tag `domain == "llm_provider"` — pins the filter to provider-originated+/// events so an unrelated subsystem emitting `failure=non_2xx`/`status=503`+/// for its own reasons doesn't get silently dropped+/// - tag `failure == "non_2xx"` (the marker set by `ops::api_error`)+/// - tag `status` parses to one of [`TRANSIENT_PROVIDER_HTTP_STATUSES`]#[cfg(feature = "crash-reporting")]pub fn is_transient_provider_http_failure(event: &sentry::protocol::Event<'_>) -> bool {let tags = &event.tags;@@ -283,6 +301,3 @@ fn is_transient_domain_failure(event: &sentry::protocol::Event<'_>, domain: &str_ => false,}}--/// Transient backend API failures (gateway hiccups, scheduled downtime).-/// Match by event tags written by report_error at the authed_json call site.diff --git a/crates/openhuman-core/src/core/observability_reporting.rs b/crates/openhuman-core/src/core/observability_reporting.rsindex 468a1a5851..b3f966a370 100644--- a/crates/openhuman-core/src/core/observability_reporting.rs+++ b/crates/openhuman-core/src/core/observability_reporting.rs@@ -680,21 +680,3 @@ pub fn report_warning_message(message: &str, domain: &str, operation: &str, extr);}}--/// Returns true when a Sentry event is a per-attempt provider HTTP failure-/// that the reliable-provider layer already handles via retry + fallback.-///-/// The primary suppression lives at the call site-/// (`crate::inference::provider::http_error::should_report_provider_http_failure`),-/// which short-circuits transient codes before `report_error` ever fires.-/// This helper is intended for use inside the `sentry::ClientOptions`-/// `before_send` hook as defense-in-depth — it catches any future call-/// site that emits a `tracing::error!` with the same shape but bypasses-/// the classifier.-///-/// Match criteria (all required):-/// - tag `domain == "llm_provider"` — pins the filter to provider-originated-/// events so an unrelated subsystem emitting `failure=non_2xx`/`status=503`-/// for its own reasons doesn't get silently dropped-/// - tag `failure == "non_2xx"` (the marker set by `ops::api_error`)-/// - tag `status` parses to one of [`TRANSIENT_PROVIDER_HTTP_STATUSES`]