All guides

Record What Your Agents Did with Session Traces

Choose how much of an agent's work to keep, read a session step by step, and verify that each record is intact.

11 min read Updated October 2026LLM FinOps
On this page
  1. 01What you'll set up
  2. 02Choose how much to keep
  3. 03Turn it on
  4. 04What gets a record
  5. 05Open the Sessions tab
  6. 06Read a session step by step
  7. 07Verify a record
  8. 08Large values are shortened, not dropped
  9. 09Privacy and retention
  10. 10If something goes wrong

01

What you'll set up

An agent run is dozens of requests. When one goes wrong you need to see what it did, in order, with the tools it called and what came back. In about eleven minutes you will choose how much to keep, turn it on, and read a session.

  • A retention mode that fits your privacy needs
  • Session traces recorded for the policy that governs your agents
  • A step-by-step view of a session
  • Verification that each record is intact

You need an owner or admin role and a policy bound to your agent's traffic.

02

Choose how much to keep

Retention is a policy setting. Start with the least you need.

Retention modeWhat is keptUse it when
Zero retention (tokens only)Counts and cost. No contentYou want no content stored at all. This is the default
Attribution only (headers + metrics)Labels and metrics, plus tool namesYou want to see which tools ran, not their content
Tool calls (arguments + results)Each tool call, its arguments, and its resultYou need to see what an agent did with its tools
Full audit (complete payloads)The text of every step, as well as tool activityYou need a complete record for a regulated workflow

03

Turn it on

Retention mode is on the Advanced step of the policy form.

  1. 1

    Open the policy

    Go to AI → Policies and open the policy that governs your agents.

  2. 2

    Open Advanced

    Find Retention mode, next to the throughput limits.

  3. 3

    Choose a mode

    Start with Tool calls (arguments + results) for most agents.

  4. 4

    Save

    New sessions are recorded from this point.

AI → Policies → Create policy → Advanced

Throughput limits

3Retention mode
Tool calls (arguments + results)
Choose how much of each session to keep.

04

What gets a record

Records are made for steps that have something worth keeping.

ModeSteps with tool activitySteps without
Zero retentionNo recordNo record
Attribution onlyA record with tool namesNo record
Tool callsA record with arguments and resultsNo record
Full auditA recordA record with the text

Every request still appears in the session view from the ledger, in order, with its model, cost, and status. Records add the content on top.

05

Open the Sessions tab

Sessions lists agent runs, newest first.

ColumnMeaning
SessionThe session id your agent declared or Cloptima inferred
AppsThe apps that took part
RequestsHow many requests the session made
RecordedHow many have a trace record
With tool callsHow many steps called tools
SpendWhat the session cost
Last activityWhen it last ran

Filter by app, environment, or team to find the run you want.

06

Read a session step by step

Open a session to see Session Execution Steps.

ColumnMeaning
#The order of the step
TimeWhen it ran
ModelWhich model answered
Tools calledThe tools the model asked for
Tokens and CostWhat the step used and cost
TraceWhether a record exists and whether it is intact
  1. 1

    Expand a step

    A step with a record shows each tool call, its arguments, and the result from the next step.

  2. 2

    Follow a tool call

    Each call shows as Requested, Result submitted, or Unresolved.

  3. 3

    Copy ids

    Request and call ids copy with a click, for tickets and searches.

AI → Sessions → Session Execution Steps

Session Execution Steps

#TimeModelTools calledTokensCostTrace
110:02:14claude-sonnet-5-5search_orders2,140$0.012Verified
210:02:17claude-sonnet-5-5none2,986$0.016Verified

1Step 1 · search_orders

Tool callResult submitted (step 2 returns it)
Arguments{ "order_id": "8841" }
Result{ "status": "shipped" }
Steps in order, with tool calls, arguments, and results.

07

Verify a record

A trace is only useful if you can trust it. Each record carries a fingerprint, and the session view checks it every time you open it.

BadgeMeaning
VerifiedThe record is intact and matches the ledger
PendingThe record is on its way to storage and will appear shortly
MissingThe ledger shows a record that could not be found
Hash mismatchThe stored record does not match its fingerprint

08

Large values are shortened, not dropped

Some tool arguments are enormous, such as a whole file being written.

Very large values are shortened to a readable head, and the record keeps the original size and a fingerprint of the full value. A reviewer can check a separately supplied original against it.

09

Privacy and retention

Keep what you need, for as long as you need it.

  • Zero retention is the default, so nothing is stored until you choose
  • Guardrails run before storage, so a redacted secret is not recorded
  • Records are kept for the retention period of your plan, alongside the ledger
  • Use Tool calls rather than Full audit unless you need the text of every step

10

If something goes wrong

Most questions are about which steps were recorded.

What you seeLikely causeFix
No records at allRetention mode is Zero retentionChoose a mode that keeps content
Steps without a recordThey had no tool activity, and the mode keeps tool steps onlyUse Full audit if you need every step
A step shows PendingThe record is still being writtenRefresh in a few minutes
A cached answer has no recordIt was served from cache, so no provider call happenedExpected

Put This Guide Into Practice

Cloptima automates the strategies described in this guide.

No credit card required
5-minute setup
Free trial