Reports and exports
Estela writes three kinds of files from one session:
| File | Command | For |
|---|---|---|
Report: one index.html | estela build, or "Export report" in the workspace | Sharing a session with a person, who opens it in a browser |
| ATIF trajectory (JSON) | estela export-atif | Harbor datasets and evaluation, other ATIF tools |
| OTLP/JSON trace request | estela export-otlp | Tracing backends: Langfuse, LangSmith, Phoenix |
Each command takes the same session argument as estela <path>: a session file, path#sessionId, or a canonical Estela JSON trace. Without one they use ESTELA_PATH, and without that a bundled demo session. Each loads the session once; a session that cannot be loaded or a file that cannot be written exits with status 1 and the reason.
Report
estela build <session> --out-dir reportThis writes report/index.html (the default directory is dist-static). build replaces the output directory after checking that it is safe to overwrite: --out-dir must be a new path, an empty directory, or a directory containing only an earlier Estela index.html report. /, your working directory, your home directory, symbolic links, non-directories, and directories with other files are refused.
In the workspace, "Export report" writes the same file into a new directory estela-report-<traceId>-<time>/ in the directory the server was started from, and shows the path. It never replaces an existing directory.
The report is the session's workspace as one static page. It opens from disk (file://) in a browser with no server and no network: the data, script, styles, and fonts are inside the file. It has the timeline, ledger, Model saw, Compare, and cost, in the language that was active when it was exported (the browser's language for build), with the language and theme switches.
What the report holds:
- every event, with long texts shortened as in the workspace view;
- the full event and the original log record of the first 2,000 events or 20 MB, whichever is smaller; the header says when the report holds fewer than all events, and Raw says "not included in this report" for the others.
A report is always redacted, whatever ESTELA_REDACT says, but redaction removes only your home directory and some token shapes. Session text and file contents remain in the report. Read it before you share it. See Privacy and redaction.
ATIF export
estela export-atif <session> --out trajectory.jsonWrites one ATIF v1.8 trajectory and prints Wrote <path>. Without --out the file is estela-<id>.atif.json in the working directory, where <id> is the first 8 characters of the session id once everything but ASCII letters, digits, _, and - is removed (session when nothing is left), with -2, -3, … added if that file or symlink already exists. With --out, Estela creates missing parent folders, overwrites an existing regular file, and refuses to write through a symbolic link (the same rules apply to export-otlp).
- One step per prompt, per model request with its reply and tool calls, and per compaction. Each step lists the Estela event ids it came from in
extra.estela.eventIds. - Events a compaction removed produce no step; steps kept from before a compaction carry
is_copied_context: true, and the compaction is a system step, withextra.context_managementwhen the compaction records its trigger or token counts. - Subagents are embedded trajectories in
subagent_trajectories, referenced from the step that started them. - Token counts go to each step's
metrics. The list cost goes tometrics.cost_usdfor each priced request, andfinal_metrics.total_cost_usdonly when every request is priced;extra.estela.pricingnames the price snapshot and how many requests are unpriced.
Validate a file with Harbor's validator:
uv run --python 3.12 --with harbor python -m harbor.utils.trajectory_validator trajectory.jsonOTLP export
estela export-otlp <session> --out session.otlp.jsonWrites one OTLP/JSON ExportTraceServiceRequest (default name estela-<id>.otlp.json, with <id> as for ATIF). The spans carry the OpenTelemetry GenAI attributes of gen-ai-dev/1.42.0-dev: one invoke_agent span per agent lane, one chat span per model request with its usage and the messages the model saw, and one execute_tool span per tool call. Requests and tool calls a compaction later removed keep their spans; they are left out of the messages of the requests after the compaction. The OTLP export is experimental: the GenAI conventions have no release yet, so attribute names can change when Estela moves to a newer version. It carries no cost, because those conventions define no cost attribute.
Post the file to a backend yourself; Estela sends nothing. Langfuse accepts OTLP/JSON as it is:
curl -H "Content-Type: application/json" -u "$LANGFUSE_PUBLIC_KEY:$LANGFUSE_SECRET_KEY" \
--data-binary @session.otlp.json https://cloud.langfuse.com/api/public/otel/v1/tracesLangSmith and Phoenix take OTLP/protobuf. Convert the file once with this script, saved as otlp-to-pb.py. OTLP/JSON writes trace and span ids as hex, while protobuf's JSON reader expects base64, so the script converts the ids first:
import base64, json, sys
from google.protobuf.json_format import ParseDict
from opentelemetry.proto.collector.trace.v1.trace_service_pb2 import ExportTraceServiceRequest
d = json.load(open(sys.argv[1]))
for rs in d["resourceSpans"]:
for ss in rs["scopeSpans"]:
for s in ss["spans"]:
for k in ("traceId", "spanId", "parentSpanId"):
if k in s: s[k] = base64.b64encode(bytes.fromhex(s[k])).decode()
sys.stdout.buffer.write(ParseDict(d, ExportTraceServiceRequest()).SerializeToString())uv run --with opentelemetry-proto python otlp-to-pb.py session.otlp.json > session.otlp.pb
curl -H "Content-Type: application/x-protobuf" --data-binary @session.otlp.pb http://localhost:6006/v1/tracesThe last line posts to a local Phoenix; for LangSmith, use its OTLP endpoint and API key header as its documentation describes. These recipes produce valid requests (16-byte trace ids, 8-byte span ids); ingestion into each backend was not re-tested for this guide.
Redaction of exports
ATIF and OTLP files are redacted like the local server: your home directory becomes ~ and the token shapes listed in Privacy are replaced. ESTELA_REDACT=0 writes the recorded text unredacted, for a dataset or backend that needs it:
ESTELA_REDACT=0 estela export-atif <session> --out trajectory.jsonThe full field mapping of both formats is in Export formats.