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
chore: files changed crates/openhuman-core/src/agent/progress_tracing/export.rs,crates/openhuman-cor
Steven Enamakel915b2656aa23
diff --git a/crates/openhuman-core/src/agent/progress_tracing/export.rs b/crates/openhuman-core/src/agent/progress_tracing/export.rsindex 2380b69b2f..31c7cbd47b 100644--- a/crates/openhuman-core/src/agent/progress_tracing/export.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/export.rs@@ -6,9 +6,9 @@ use crate::config::Config;use super::langfuse;use super::otlp;+use crate::config::schema::AgentTracingBackend;use tinyagents_harness::observability::trace_export::serialize::{spans_to_ndjson, SpanEnvelope};use tinyagents_harness::observability::trace_export::{RunType, TraceContext, TraceSpan};-use crate::config::schema::AgentTracingBackend;/// Map the configured backend onto the upstream NDJSON envelope.pub(crate) fn envelope_for(backend: AgentTracingBackend) -> SpanEnvelope {@@ -178,7 +178,10 @@ pub(crate) async fn export_subagent_journal_trace(.map(|id| id.as_str().to_string()),Some(first.root_run_id.as_str().to_string()),);- let rooted = langfuse::root_subagent_observations(&observations);+ let rooted =+ tinyagents_harness::observability::trace_export::journal_export::root_subagent_observations(+ &observations,+ );let mut spans =super::journal_projection::spans_from_observations(trace_ctx.clone(), 0, &rooted);if let Some(root) = spans.iter_mut().find(|span| span.parent_span_id.is_none()) {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 d1f4945718..30425e43df 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@@ -102,11 +102,8 @@ pub(crate) async fn push_observations(let mut payload = client.build_ingestion_batch(trace, observations.as_ref()).map_err(|err| format!("Langfuse journal batch build failed: {err}"))?;- if insert_run_telemetry_generation(- &mut payload,- run_telemetry.map(run_totals).as_ref(),- &brand,- ) {+ if insert_run_telemetry_generation(&mut payload, run_telemetry.map(run_totals).as_ref(), &brand)+ {tracing::debug!(target: LOG_TARGET,"[agent-tracing] added run telemetry aggregate to Langfuse journal batch"diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse_tests.rsindex bd10bd5ed0..eb9ef0ca21 100644--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse_tests.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse_tests.rs@@ -1,8 +1,8 @@use super::*;use std::collections::BTreeMap;-use tinyagents_harness::observability::trace_export::SpanKind;use tinyagents_harness::ids::{CallId, EventId, RunId};+use tinyagents_harness::observability::trace_export::SpanKind;use tinyinference_llm::usage::Usage;fn span(diff --git a/crates/openhuman-core/src/web_chat/journal_shadow.rs b/crates/openhuman-core/src/web_chat/journal_shadow.rsindex b5a01cfe6a..3844b2d780 100644--- a/crates/openhuman-core/src/web_chat/journal_shadow.rs+++ b/crates/openhuman-core/src/web_chat/journal_shadow.rs@@ -15,7 +15,9 @@//! crate journals no sub-agent events at all, so every delegating turn loses//! that subtree on replay.-fn span_projection_signature(spans: &[tinyagents_harness::observability::trace_export::TraceSpan]) -> Vec<String> {+fn span_projection_signature(+ spans: &[tinyagents_harness::observability::trace_export::TraceSpan],+) -> Vec<String> {spans.iter().map(|span| {