---
title: "Reports"
url: "/docs/proxy/lens/reports"
canonical_url: "https://docs.litellm.ai/docs/proxy/lens/reports"
type: "docs"
last_updated: "2026-12-05"
summary: "Ask any question about your agent traces, set an analysis budget, and review ranked recommendations backed by trace citations."
related:
  - "/docs/proxy/lens/agent-development"
  - "/docs/proxy/lens/findings"
---
# Reports

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt

PromptExample,
  ReportFlow,
  ReportScreenshot,
  TemplateGrid,
} from '@site/src/components/LensReports';

# Reports

Reports are available in [Lens 0.8.0](https://github.com/BerriAI/lens/releases/tag/v0.8.0).

Ask Lens to [trace a slow developer request](#trace-a-slow-developer-request) or find patterns across runs. The report links its findings to the traces behind them.

:::info Prerequisites
You need traces in Lens and a connected analysis model. Standalone administrators and gateway proxy administrators can generate reports. Gateway admin viewers can open completed reports. If Lens prompts you to connect an analysis model, select **Set up analysis** first.
:::

## 1. Choose a template or write a question

Open **Reports** and select **Generate report** (if you have no reports yet, Lens opens the template picker directly). Pick a template to prefill **Question** and **What to look for**, then edit either field before running.

### Example: Trace a slow developer request {#trace-a-slow-developer-request}

For example, to investigate a single slow request, open **Reports → Generate report** and select **Write your own question**. Use the developer’s trace ID if you have it, or describe the agent, time, and request.

Choose the agent and a **Time range** around the request. If your app records a unique request ID as trace metadata, use **More options → Add metadata filter** to narrow the selection. Check how many traces match and how many are selected for analysis, then select **Generate report**.

Open the report’s citation to confirm it analyzed the developer’s trace. If the request was outside the sample, narrow the scope and run again. If Lens finds a slow model call but the trace only records its total duration, [check the gateway timings](./traces.md#check-request-timings) to separate gateway overhead from the provider round trip.

## 2. Set scope and analysis budget

Choose one or more **Agents** (or **All agents**) and a **Time range**. For **Custom dates**, enter **From** and **To** in local time; the finished report records the exact window and timezone. Open **More options** to narrow the selection to **Only traces matching a signal** or to add a metadata key/value filter.

Set **Analysis spending limit (USD)** for generating the report. This cap covers the report analysis itself and is separate from the agent spend recorded inside the traces. Use **Maximum traces (optional)** (1 to 1,000; default 100) to bound how many traces enter analysis while keeping matching-trace counts and measured totals across the full filtered scope.

:::note Estimates and partial reviews
Estimated analysis cost and remaining time are starting guides rather than guarantees of total spend or completion time. If a report hits its spending limit before finishing, check its review limits before acting on the findings.
:::

Select **Generate report** to start. The report page tracks current analysis progress, delegated tasks, elapsed time, and analysis spend. You can leave the page and return anytime under **In progress** or **Completed reports**.

## 3. Review findings and test changes

Start with **Recommended changes**, then open any finding to inspect the observed sequence, supporting trace citations, and suggested verification steps.

**Coding agent report**

**Support agent report**

Check the report's scope and review limits before generalizing: measured totals can cover a wider set than the traces examined for a specific finding, and missing cost or timing data limits what the report can conclude. Verify a recommendation by replaying the same tasks with the same assertions and isolated test data, then comparing the results.

Use **Copy link** to share a report with anyone who has Reports access, **Download Markdown** to export it, or **Run again** to rerun with the same question and saved maximum-traces setting over a new time window.

## Troubleshooting

If a report cannot finish, open it under **Needs attention**, read the error message, and select **Edit and try again**. Verify your analysis-model connection and confirm the filter matches traces. If the run exhausted its spending limit, narrow the question or scope, or raise **Analysis spending limit (USD)** within the supported range.

## Related pages

- [Agent development](https://docs.litellm.ai/docs/proxy/lens/agent-development.md)
- [Findings](https://docs.litellm.ai/docs/proxy/lens/findings.md)
