Experiments via OpenTelemetry
Attach experiment metadata to OpenTelemetry spans so Langfuse groups those traces as an experiment run.
Using Python or TypeScript? Use Experiments via SDK. The Langfuse SDKs set these attributes automatically.
See the Experiments data model for how datasets, experiment runs, items, traces, and scores relate.
Ingest experiment spans
Set experiment and item attributes on your OTEL spans so Langfuse can synthesize them as one experiment. The attribute list, baggage propagation pattern, and per-item loop live in the OpenTelemetry integration docs:
After traces land, use the Experiments API to list runs and fetch items.
Was this page helpful?
Last edited