Skip to content

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

feat(runtime): add tracing for progressive channel operations

Steven Enamakel8ae1fd1ffe96
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs
index 5db81920ba..9bc4121757 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs
@@ -35,6 +35,21 @@ impl NativeProgressiveTarget {
&self,
turn_id: &str,
) -> anyhow::Result<std::sync::Arc<NativeProgressiveReply>> {
+ tracing::debug!(
+ provider_matches_account = self
+ .channel
+ .account_id
+ .as_deref()
+ .is_some_and(|account| tinychannels_bus::provider_id(account) == self.channel.id),
+ account_present = self
+ .channel
+ .account_id
+ .as_deref()
+ .is_some_and(|account| !account.trim().is_empty()),
+ conversation_present = !self.conversation.id.trim().is_empty(),
+ turn_present = !turn_id.trim().is_empty(),
+ "opening native channel progressive turn"
+ );
let lifetime = std::time::Duration::from_secs(3_660);
let reply = match &self.kind {
ProgressiveTargetKind::Configured(object) => {
@@ -140,6 +155,13 @@ pub(crate) fn native_target(
.get(account)
.cloned()
.ok_or_else(|| anyhow::anyhow!("native channel account is not configured"))?;
+ tracing::debug!(
+ provider_matches_account = tinychannels_bus::provider_id(account) == envelope.channel.id,
+ account_present = !account.trim().is_empty(),
+ conversation_present = !envelope.conversation.id.trim().is_empty(),
+ message_present = !envelope.message_id.trim().is_empty(),
+ "native channel progressive target resolved"
+ );
Ok(Some(NativeProgressiveTarget {
kind: ProgressiveTargetKind::Configured(object),
channel: envelope.channel.clone(),