Skip to content

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

fix(progress_tracing): handle missing langfuse trace gracefully

Steven Enamakel3df5269f2912
diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs
index ad3176b585..aae499f3ec 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs
@@ -25,33 +25,15 @@ pub(crate) use environment::{environment_for_base, ingestion_url, skip_push};
pub(crate) use journal_export::journal_push_ready;
#[cfg(test)]
pub(crate) use journal_export::push_observations;
-pub(crate) use tinyagents_harness::observability::trace_export::journal_export::root_subagent_observations;
-use super::TraceContext;
-#[cfg(test)]
-use super::{SpanStatus, TraceSpan};
+use tinyagents_harness::observability::trace_export::TraceContext;
#[cfg(test)]
use crate::config::Config;
#[cfg(test)]
use environment::push_allowed;
#[cfg(test)]
-use ingestion_batch::{iso_millis, split_ingestion_batch};
-#[cfg(test)]
-use journal_export::{
- insert_run_telemetry_generation, observations_for_export, trace_config_from_context,
- trace_ctx_with_run_lineage,
-};
-#[cfg(test)]
use serde_json::{json, Value};
-#[cfg(test)]
-use std::borrow::Cow;
-#[cfg(test)]
-use tinyagents_harness::events::AgentEvent;
-#[cfg(test)]
-use tinyagents_harness::observability::{AgentObservation, LangfuseClient};
-#[cfg(test)]
-use tinyagents_session::run_ledger::RunTelemetry;
const LOG_TARGET: &str = "agent-tracing::langfuse";
/// Cap the push so a slow/hung Langfuse never stalls run teardown.