Need more detail? Connect your coding agent to the full docs.

Skip to Content
AMIRILDocs

Upload a Langfuse export

Export your observations from Langfuse as a JSONL file and upload it on the Data page. Each trace in the file becomes a run of the agent it names.

If your traces are already in Langfuse, upload them instead of sending them again. Their runs show on the same pages as runs sent live. Live OpenTelemetry takes spans up to 30 days old, but an upload can bring in older history too.

You need the admin role to upload.

Export from Langfuse

Amiril reads Langfuse observations, one JSON object per line. There are two ways to get that file out of Langfuse:

  • From the interface. Open the observations table in Langfuse, select its export button and choose JSONL.
  • From the API. Call GET /api/public/v2/observations with fields=core,basic,io,time,model,usage,trace_context,metadata, or the payloads come back empty. Each call returns one page, so follow meta.cursor until it runs out. Write each item of every page's data array as one line.

A gzipped file (.jsonl.gz) works too. Langfuse's blob storage export has another shape, and Amiril does not read it.

Pick the environment

The upload goes into the environment selected at the top of the page. The Data page names it under the drop zone, for example "Files you upload here go into Development." Switch first if that is not where the runs belong. Set up environments and API keys explains the choice.

Upload the file

Open Data and drop the file on Drop your export here, or browse. It takes .jsonl or .jsonl.gz files up to 2 GB.

When the environment is a production one, Amiril asks first. Select Upload to Production to go on.

Follow the import

The file gets a row under History. Its status moves from Uploading to Waiting, Reading and Scoring, then to Ready. A large file can stay on Scoring for several minutes.

Amiril reads timestamps that carry no timezone as UTC, and the row says so. Change timezone reads them again in another zone.

See the runs

Once the row is Ready, open Traces. Each trace from the file is listed there as a run. The run belongs to the agent named by its trace name in Langfuse. A name Amiril has not seen before shows on the Agents page under Unregistered until you register it.

Open a run to see its tool calls and its rarity. Find and read runs walks through the page.

Next steps

Last updated on