Skip to content

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

test(web_chat): disable exporters explicitly in trace context test

Steven Enamakel7cf8b8e924a1
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge_trace_tests.rs b/crates/openhuman-core/src/web_chat/progress_bridge_trace_tests.rs
index 64cb71c834..99dc79cc2f 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge_trace_tests.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge_trace_tests.rs
@@ -2,7 +2,11 @@ use super::*;
#[test]
fn disabled_export_does_not_create_a_trace_context() {
- let config = crate::config::Config::default();
+ // Usage sharing is on by default, so "disabled" has to turn both exporters
+ // off explicitly rather than lean on the default config.
+ let mut config = crate::config::Config::default();
+ config.observability.share_usage_data = false;
+ config.observability.agent_tracing.enabled = false;
let context = trace_context(
&config,
&ChatRequestMetadata::default(),