# 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 [#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 [#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](/traces/environments-and-keys) explains the choice.

## Upload the file [#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 [#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 [#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](/agents#register-an-agent).

Open a run to see its tool calls and its [rarity](/monitor/signals). [Find and read runs](/monitor/runs) walks through the page.

## Next steps

- [Send traces to Amiril](https://docs.amiril.ai/traces.md): Send your agents' traces to Amiril live over OpenTelemetry, from your framework or any OpenTelemetry SDK, or upload a file exported from Langfuse.
- [Set up environments and API keys](https://docs.amiril.ai/traces/environments-and-keys.md): Create an environment such as Staging and an API key that sends to it, so test runs stay out of production. Then put the key where each service runs.
- [Find a run and see why it was flagged](https://docs.amiril.ai/monitor/runs.md): Open a run from an issue, the Anomalies page or the Traces page and see why Amiril flagged it. Then review it to teach Amiril which rarity factors are noise.

## More detail

- [Trace attributes Amiril reads](https://docs.amiril.ai/assistant/traces/attributes.md): Every span attribute and Langfuse field Amiril reads, per dialect: what makes a run, tool call or generation, how agent and session are found, the OTLP receiver, and what is ignored.
- [Limits and defaults](https://docs.amiril.ai/assistant/limits.md): Every limit and default a customer can hit in Amiril, with its number: plan amounts, ingest sizes and rates, imports, rules, backtests, API and MCP rates, page sizes, retention, name lengths.
- [Troubleshooting](https://docs.amiril.ai/assistant/troubleshooting.md): Symptom, cause, how to confirm and fix for common Amiril problems: missing runs, plan limits, wrong agent or environment, rules that never fire or never block, SDK, key, import and MCP failures.
