Understand Langfuse data freshness and real-time ingestion
mainMost GET APIs from the SDK packages can be up to 10 minutes behind.
To achieve real-time data ingestion, you must use the OpenTelemetry path:
- Use
@langfuse/otelor any OTel exporter sending the headerx-langfuse-ingestion-version: 4. - Query data using the Observations API v2 (
GET /api/public/v2/observations) and the Metrics API v2.
Do not use GET /api/public/traces or api.traceList for real-time requirements.