langtrace version upgrade

This commit is contained in:
Hridayesh Gupta 2026-05-20 11:27:22 +05:30
parent 542a3ddb5d
commit 26d00dc5c9
2 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,4 @@
langfuse==3.9.3
langfuse==4.6.1
fastapi==0.135.3
asyncpg==0.30.0
alembic==1.16.5

View file

@ -75,7 +75,10 @@ class _OrgRoutingExporter(SpanExporter):
self._org_hosts[key] = normalized_host
exporter = OTLPSpanExporter(
endpoint=endpoint,
headers={"Authorization": f"Basic {auth}"},
headers={
"Authorization": f"Basic {auth}",
"x-langfuse-ingestion-version": "4",
},
)
self._org_exporters[key] = exporter
logger.info(f"Registered OTEL exporter for org {org_id}")
@ -158,7 +161,10 @@ def ensure_tracing() -> bool:
).decode()
default_exporter = OTLPSpanExporter(
endpoint=f"{LANGFUSE_HOST}/api/public/otel/v1/traces",
headers={"Authorization": f"Basic {langfuse_auth}"},
headers={
"Authorization": f"Basic {langfuse_auth}",
"x-langfuse-ingestion-version": "4",
},
)
_org_routing_exporter = _OrgRoutingExporter(default_exporter)