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/observationswithfields=core,basic,io,time,model,usage,trace_context,metadata, or the payloads come back empty. Each call returns one page, so followmeta.cursoruntil it runs out. Write each item of every page'sdataarray 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
Send traces to Amiril
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
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
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.
Last updated on