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
refactor(progress_tracing): split langfuse module into submodules
Steven Enamakelb47b9c14ebaf
diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rsindex 68f9916837..6b9f10d2d4 100644--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs@@ -23,7 +23,7 @@mod environment;mod journal_export;-pub(crate) use environment::{environment_for_base, ingestion_url, otlp_url, skip_push};+pub(crate) use environment::{environment_for_base, otlp_url, skip_push};pub(crate) use journal_export::journal_push_ready;#[cfg(test)]diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse/environment.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse/environment.rsindex 7928f56f0e..5b9c77ce60 100644--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse/environment.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse/environment.rs@@ -1,24 +1,11 @@//! Backend-host resolution and the deployment-environment push gate for the-//! Langfuse exporter: where the ingestion proxy lives, which environment the+//! Langfuse exporter: where the OTLP proxy lives, which environment the//! resolved host belongs to, and whether that environment may push at all.use crate::config::Config;use super::LOG_TARGET;-/// The Langfuse ingestion URL the host resolved-/// (`config.resolved_endpoints.tracing_ingest_url`), so the host always-/// matches wherever the app's domain calls go (staging, prod, or a custom-/// `api_url` override). Empty when no host resolved one; callers treat a-/// non-`http` URL as "proxy unavailable" and skip the push.-pub(crate) fn ingestion_url(config: &Config) -> String {- config- .resolved_endpoints- .tracing_ingest_url- .clone()- .unwrap_or_default()-}-/// The OTLP/HTTP traces URL the host resolved/// (`config.resolved_endpoints.tracing_otlp_url`). Empty when no host resolved/// one; callers treat a non-`http` URL as "proxy unavailable".@@ -52,7 +39,7 @@ pub(crate) fn otlp_url(config: &Config) -> String {/// domain, anchored to its own deployment domain so the classifier fails/// *closed*.///-/// An unparseable URL is external — the fail-closed default. `ingestion_url`+/// An unparseable URL is external — the fail-closed default. `otlp_url`/// can return a non-URL placeholder when no backend host resolves, and the/// caller checks `starts_with("http")` separately; classifying that as/// anything pushable would defeat the gate.diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse/journal_export.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse/journal_export.rsindex 96b5832fd9..bbad5a4080 100644--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse/journal_export.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse/journal_export.rs@@ -4,7 +4,7 @@use crate::config::Config;use crate::security::credentials::session_support::direct_backend_credential;-use super::{environment_for_base, ingestion_url, skip_push};+use super::{environment_for_base, otlp_url, skip_push};/// Whether a journal push would actually send for `config`: the URL gate, the/// environment gate and a live session credential. Callers must read a journal@@ -12,7 +12,7 @@ use super::{environment_for_base, ingestion_url, skip_push};/// signed-out or embedder host) or on a skipped environment that work is/// discarded anyway, and reading a whole child journal is not free.pub(crate) fn journal_push_ready(config: &Config) -> bool {- let url = ingestion_url(config);+ let url = otlp_url(config);!skip_push(environment_for_base(config, &url))&& url.starts_with("http")&& matches!(