Skip to content

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

fix(progress_tracing): import missing types for test compilation

Steven Enamakelb2a9a5e85ae7
diff --git a/crates/openhuman-core/src/agent/progress_tracing.rs b/crates/openhuman-core/src/agent/progress_tracing.rs
index 770d420f1c..2c7096e424 100644
--- a/crates/openhuman-core/src/agent/progress_tracing.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing.rs
@@ -67,7 +67,7 @@ mod export;
// Langfuse batch chunking live upstream in
// `tinyagents_harness::observability::trace_export`.
#[cfg(test)]
-use tinyagents_harness::observability::trace_export::{SpanKind, SpanStatus};
+use tinyagents_harness::observability::trace_export::{trace_session_id, SpanKind, SpanStatus};
use tinyagents_harness::observability::trace_export::{
ExportBrand, RunType, TraceContext, TraceSpan,
};
diff --git a/crates/openhuman-core/src/agent/progress_tracing/export.rs b/crates/openhuman-core/src/agent/progress_tracing/export.rs
index 31c7cbd47b..afa79bc38c 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/export.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/export.rs
@@ -196,7 +196,7 @@ pub(crate) async fn export_subagent_journal_trace(
}
}
}
- otlp::prepare_subagent_root(&mut spans);
+ tinyagents_harness::observability::trace_export::otlp::prepare_subagent_root(&mut spans);
if let Err(err) = otlp::push_spans(config, &spans).await {
log::warn!(
"[agent-tracing] child Langfuse OTLP push failed run_id={journal_run_id}: {err}"
diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs
index aae499f3ec..1896aaf26f 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs
@@ -33,7 +33,13 @@ use crate::config::Config;
#[cfg(test)]
use environment::push_allowed;
#[cfg(test)]
-use serde_json::{json, Value};
+use serde_json::json;
+#[cfg(test)]
+use tinyagents_harness::events::AgentEvent;
+#[cfg(test)]
+use tinyagents_harness::observability::trace_export::{SpanStatus, TraceSpan};
+#[cfg(test)]
+use tinyagents_harness::observability::AgentObservation;
const LOG_TARGET: &str = "agent-tracing::langfuse";
/// Cap the push so a slow/hung Langfuse never stalls run teardown.