End-to-end traces
Follow model calls, tools, errors, latency, and usage through the complete run that produced them.
A trace explains what happened. An evaluation tells you whether it met the expectation. Lens keeps both connected so production evidence can inform the next release.
Operational signals, repeatable evaluation, and release decisions stay connected to the runs that produced them.
Follow model calls, tools, errors, latency, and usage through the complete run that produced them.
Keep suite, case, metric, release, dataset version, and trace identity together as one evaluation run.
Compare a candidate with its baseline and make regressions visible before they reach production.
Send native Anvia telemetry or supported OTLP traces to infrastructure and storage your team operates.
Start with what happened in production, diagnose the behavior, measure the candidate on stable cases, then let an explicit gate carry the evidence into release review.
Capture the agent, model, tool, release, latency, and usage involved in one production run.
Move from an alert or regression into the exact span, input boundary, and failure that changed.
Replay stable cases against a published dataset version and correlate every result to its trace.
Compare the candidate with its baseline, apply thresholds, and ship only with evidence.
Move between the operating picture, a failed production trace, and its candidate comparison. The preview keeps the evidence connected just as the real workflow does.
Production AgentsOverview
448 spans · 4 active users in this window
| Model | Gens | Share | Input | Output | Total | Tok/gen | P95 | Err |
|---|---|---|---|---|---|---|---|---|
| gemini-2.0-flash | 92 | 41% | 47.1K | 37K | 84.1K | 914 | 0.84s | 4.2% |
| gpt-4o | 38 | 29% | 33.3K | 26.2K | 59.5K | 1,564 | 2.41s | 8.1% |
| gpt-4o-mini | 50 | 18% | 20.7K | 16.2K | 36.9K | 738 | 1.12s | 12.4% |
| claude-3-sonnet-4 | 12 | 12% | 13.8K | 10.8K | 24.6K | 2,050 | 2.88s | 16.7% |
| Service | Traces | Gens | Tokens | P95 | Err |
|---|---|---|---|---|---|
| customer-support-agent | 28 | 86 | 94.3K | 3.12s | 9.4% |
| billing-copilot | 14 | 40 | 59.4K | 1.96s | 6.1% |
| research-agent | 11 | 33 | 30.8K | 4.80s | 14.2% |
| docs-qa | 11 | 33 | 20.5K | 1.44s | 13.0% |
Lens groups the suite, immutable dataset version, metric direction, usage, outcomes, and trace references as one candidate that can be compared and gated.
Dataset support-regression@v12 · 48 cases · 192 metric results
@anvia/lens creates isolated telemetry providers, attaches to the runtime you already own, and exports correlated traces over OTLP HTTP with project-scoped credentials.
1import { Agent } from '@anvia/core'2import { LensClient } from '@anvia/lens'34const lens = new LensClient()5const tracing = lens.observer({ captureMode: 'safe' })67const agent = new Agent({8 id: 'support',9 model,10 observability: { observers: { tracing } },11})1213await agent.generate({ prompt: 'Summarize this ticket.' })14await lens.flush()15await lens.close()Safe capture exports operational metadata without input or output bodies. Full payloads remain opt-in; redaction and size limits are configurable and governed by your application.
Defines the agent, release policy, credentials, and which environments or data classes may include payloads.
AUTHORIZE + CONFIGURENo global provider takeover. Payload capture is off until explicitly enabled.
metadata onlyredactionsize limitsAgent, model, tool, environment, release, latency, usage, and errors.
Run lifecycle, cases, metrics, outcomes, usage, and direct trace references.
Project-scoped ingestion into the self-hosted Lens control plane.
Three repeatable paths from an operational or quality signal to the run-level evidence needed to act.
Compare P95 by release and service, open the slow cohort, then inspect the model and tool spans consuming the budget.
P95 alert → release cohort → slow trace → span timingGroup errors by service and tool, follow one representative run, and separate bad input from permissions, retries, or provider failure.
error cluster → tool span → run context → root causeOpen the candidate comparison, inspect the failing cases, jump to their traces, then rerun the same published dataset version.
blocked gate → failed case → linked trace → rerunStudio helps you understand an agent before it ships. Lens keeps the same runtime concepts visible after deployment and feeds the evidence into the next candidate.
Exercise the real local agent, resolve approvals, inspect context, and replay the workflow.
Explore StudioInvestigate deployed runs, compare stable evaluation suites, and carry evidence into release review.
Open the Lens guideDownload the Compose and environment templates, configure unique secrets, then start the stack. The first account becomes the workspace owner.
Read the install guideDownload the official templates, pin a Lens release, and configure unique secrets.
Launch the stack. The first account created becomes the workspace owner.
Create a project and ingestion key, then send native Anvia telemetry or supported Langfuse v5 OTLP traces.
Connect one agent in safe-capture mode, investigate its traces, then promote a stable evaluation suite into an explicit quality gate.