Skip to content

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

refactor(progress_tracing): pass raw token to langfuse client

Steven Enamakelc99292351749
diff --git a/crates/openhuman-core/src/agent/progress_tracing/otlp.rs b/crates/openhuman-core/src/agent/progress_tracing/otlp.rs
index 65cc4c4f63..4a6cf69b81 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/otlp.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/otlp.rs
@@ -12,7 +12,6 @@ use tinyagents_harness::observability::LangfuseClient;
use super::langfuse::{environment_for_base, ingestion_url, skip_push};
use crate::config::Config;
-use crate::security::credentials::jwt::bearer_authorization_value;
use crate::security::credentials::session_support::direct_backend_credential;
const PUSH_TIMEOUT: Duration = Duration::from_secs(10);
@@ -42,11 +41,10 @@ pub(super) async fn push_spans(config: &Config, spans: &[TraceSpan]) -> Result<(
// and route policy. LangfuseClient owns the proxy route, bearer header,
// OTLP v4 header, and response validation.
let transport = crate::backend::resolve_backend_transport()
- .map_err(|err| format!("Langfuse OTLP push has no backend transport: {err}"))?
- ;
+ .map_err(|err| format!("Langfuse OTLP push has no backend transport: {err}"))?;
let client = LangfuseClient::proxy_with_transport(
url,
- bearer_authorization_value(&token),
+ token,
transport.http_client(crate::backend::TransportProfile::Api),
transport.attribution_headers(),
)