Skip to main content
Lens discovers categories in your agent’s production traffic and labels each session or trace. Use it to find which interactions to investigate. For example, a customer support agent’s top categories might be order tracking, returns, and product questions.

How Lens works

Lens uses two components to categorize your traffic:
  • Discovery agent: Periodically analyzes traffic to identify categories and generate descriptions for them.
  • Labeling judge: Assigns sessions or traces to a category. Records that don’t match an existing category are labeled Unclassified.
As new traffic arrives, Lens continues to label records and discover new categories. While Signal identifies recurring failures, Lens helps you understand the types of interactions your agent handles.

Enable Lens

Lens requires a tracing project with incoming traffic, project update permissions, and access to managed agents. See Pricing and usage for availability.
  1. Open your tracing project, select the Signal & Agents tab, and select Lens under Managed agents.
  2. Click Enable Lens.
  3. Configure the following settings:
  4. Click Enable Lens.
Enable Lens dialog with a project selector, an optional agent description for a customer support agent, Sessions or Traces as the labeling unit, and review settings with Claude Code as the harness and an AI provider integration selector

The Enable Lens dialog: project, labeling description and unit, and review settings.

You can also enable Lens from the Managed Agents page. The dialog adds a Project step, where you select a project that does not already have Lens enabled.

When to expect results

The first discovery run can take a few hours. Once categories are discovered, Lens begins labeling your traffic. New labels appear after the next scheduled discovery run, plus processing time. If no categories are found, Lens tries again on the next run. You can pause or resume Lens from the page header or update your settings under Configure Lens. The labeling unit cannot be changed.

Explore your categories

The Lens page shows labeled traffic from the last 30 days.
Active Lens page for a tracing project showing 14 categories, a top category at 34.9 percent, 12 new categories this window, a daily share chart of 4,494 labeled sessions by category, and the Find and filter traces category selected with its share, 7-day change, session count, and description

Lens results: metric tiles, the share of labeled sessions over time, and the ranked category list with a selected category's details.

The share chart shows how the distribution of categories changes over time. Smaller categories may be grouped under Other. Unlabeled records are excluded from the chart. Select a category to see its:
  • Description
  • Record count and share of traffic
  • Recent changes in share
  • Example sessions or traces
Click View records to explore all sessions or traces assigned to that category.

Unclassified traffic

Sessions or traces that don’t match an existing category are labeled Unclassified and included in the share chart. Subsequent discovery runs may identify new categories that better represent this traffic.

Use categories across Arize

Lens adds a lens.category attribute and labeling timestamp to each labeled record. You can use the category attribute to:
  • Filter sessions and traces using lens.category = '<name>'.
  • Run evals on specific categories of traffic.
  • Build dashboards to track categories over time.
  • Include category labels in data exports.

Troubleshooting

Last modified on December 1, 2026