Lens page
The Lens page embeds the Lens workspace in the Admin UI. Lens records your agents' runs as traces, lets you inspect every step, analyzes the traces automatically and reports findings, and turns real conversations into datasets and evals that can gate pull requests. Open it at /ui/lens. It sits in the left nav in the Observability group as Lens, after Logs and before Status Page.
The nav shows Lens to every role. When an admin limits the pages internal users can see (the enabled_ui_pages_internal_users UI setting), internal users only see it if it is on that list. The page renders nothing until you are signed in. The page itself opens without a license, and Home, Agents, Traces, Findings and Settings work on Starter. The Datasets and Evals tabs need a license with the evals feature, and without it the gateway refuses their requests with 403 "Your Spanway license does not include the 'evals' feature. Contact sales@spanway.ai to add it." (or "The 'evals' feature needs a Spanway enterprise license." when there is no license). Lens itself is a separate service that the gateway forwards to, so the page only works when the deployment runs Lens and the gateway has SPANWAY_LENS_URL, LENS_GATEWAY_SECRET and SPANWAY_LENS_SERVICE_TOKEN set. Otherwise every Lens call fails with a 503 that names the setting to fix, or "Lens service is unavailable". The gateway passes your identity and role to Lens, and Lens decides what you may read and change, as described in the role section below.
A real-world scenario
A developer has an agent that calls the gateway and wants to see each step of one run. They open the Lens page, copy setup instructions with a new tracing key into their coding agent, run one task, and open the trace when it arrives to read the input and output of each span.
Steps
-
Open Lens under Observability in the left nav, or go to
/ui/lens. -
On Home click Copy instructions with new key and paste the instructions into your coding agent, or click Set up manually, then Create tracing key and Copy project environment.
-
Run one task with the agent. The See your trace block moves to "Trace received". Click Open trace.
-
Click a span and open its Content tab. To fetch the same run from the command line, click Copy for agent in the trace inspector, or call the service status:
curl http://localhost:4000/lens/service -H "Authorization: Bearer $SPANWAY_API_KEY"
Expected result
The trace shows its span tree, the Content tab shows each span's input and output as the content policy allows, and the run is listed on Traces.
Workspace layout
A tab bar runs across the top of the workspace.
| Tab | What it holds |
|---|---|
| Home | Connect a new agent and get a tracing key |
| Agents | Every agent Lens has received traces from |
| Traces | Recorded runs of the selected agent, and the trace inspector |
| Search | Find runs by the words in their steps. Not shown with Demo data on. |
| Sessions | Conversations grouped by session id, each readable as a thread. Not shown with Demo data on. |
| Findings | Problems automatic analysis found in your traces |
| Datasets | Cases saved from real runs |
| Evals | Evals built on those datasets, and their runs |
| Settings | Tracing, signals and analysis settings. Shown only to proxy admins who are not read only. |
The Findings tab shows a pulsing dot while analysis is running. The Settings tab shows a warning dot while the analysis worker is not connected, with the tooltip "Configure analysis", otherwise "Analysis configured".
The right side of the tab bar holds an agent picker, the current page's actions, a Connect GitHub icon button, a Demo data switch and a Documentation link. With no tab chosen, the page opens on Traces. The workspace keeps its state in the URL, so a link opens the same tab, agent, trace, finding, dataset or eval.
| Control | Type | What it does |
|---|---|---|
| Agent picker | Searchable dropdown | Chooses the agent the tabs show. The placeholder reads "Find agent". The choice is remembered in the browser. Choosing an agent opens Traces and closes any open trace, finding or dataset. |
| Connect GitHub | Icon button | Opens the GitHub connection dialog. |
| Demo data | Switch | Fills the workspace with sample data. Turning it on or off clears the open selection. |
| Documentation | Link | Opens the Lens docs. |
Demo data
With Demo data on, the workspace shows built-in sample agents, traces, findings and datasets in your browser. It acts as a read only proxy admin viewer. Saves to the analysis service are refused with "Demo data is read-only", dataset edits stay in the browser only, the evals list is empty, Settings is hidden, and Live and Connect project are disabled. Home reads "Turn off demo data to connect your project.".
Get started
On the Traces tab, when no trace has ever been recorded and no trace is open, a Get started screen replaces the list. It opens with buttons Set up Lens, which scrolls to the steps, and Docs, and two sample cards that only illustrate what tracing and findings look like.
The Get Lens running section checks your connection at each step. A Set it up for me button copies a setup prompt for a coding agent, and View prompt shows it. Once there is activity, View traces or View findings leaves the screen. If the check fails it reads "Could not check setup." with the error and a Retry button. Users who are read only or not proxy admins read "An administrator can configure automatic analysis.".
| Step | What it shows |
|---|---|
| Install Lens | Until Lens is reachable, buttons Helm setup, Docker setup and Check setup, with a message saying what is missing, such as Lens not being enabled, the gateway not reaching Lens with the same service secret, trace storage being unavailable, or the public tracing address not being set. When ready it reads "Trace storage is connected" with Continue to your agent. |
| Send your first trace | The connect block from the Home tab. When a trace arrives it says your first trace is ready. |
| Configure analysis | Says to connect a model in Settings, and that Lens analyzes each agent automatically after 10 traces. Configure analysis or View automatic analysis is disabled until there is activity, and for users who are read only or not proxy admins. |
| Review findings | View automatic analysis, disabled until analysis is ready and for users who are read only or not proxy admins. |
A Before you start list names what Lens needs (the Spanway gateway, trace storage, a container deployment and an analysis model). A footer says your infrastructure stores the traces and that selected trace content is sent to your selected model provider.
Home tab
Home is titled "Connect a new agent". View agents appears once any agent exists.
A status banner shows the first problem that applies. "Sign in again to connect your agent." comes with Reload to sign in. Other messages say you need access from your Lens administrator, that Lens could not be reached, that the connection is being checked, that Lens or trace storage is not ready, that the public Lens address must be set in deployment setup, or that Lens is syncing tracing credentials. Retry connection checks again, and Deployment setup (proxy admins who are not read only) opens the deployment steps.
Set up with your coding agent
The panel has two modes, switched with the link Set up manually or Use a coding agent.
| Control | Type | What it does |
|---|---|---|
| Copy instructions with new key | Button | Creates a tracing key and copies setup instructions that include it. Other labels are Copy instructions with key when a key is already chosen and Copy setup instructions when you cannot create keys. |
| Copy without key | Button | Copies the instructions without a key. |
| View full instructions | Link | Shows the whole text. |
| Create tracing key | Button, manual mode, proxy admins who are not read only | Creates a tracing key. The key is masked and is available only on this page, so copy it before you leave. |
| Copy project environment | Button, manual mode | Copies the environment variables your project needs. When Lens is not connected the panel asks you to restore the connection to get your tracing endpoint. |
| Use an existing key, Choose another key, Use a new key | Links | Switch between creating a key and using one you already have. |
| Manage tracing keys | Link, proxy admins and proxy admin viewers | Opens the tracing keys dialog. |
Users who cannot create keys read "Ask your Lens administrator for a tracing key, or use one already in your project.". A Your tracing key section warns that the key cannot be shown again. If creating a key or copying fails, a message says so.
See your trace
After you set up, a status block follows your agent's first trace. It moves from "Run one task" to "Waiting for your agent’s trace" to "Trace received", or shows "No trace received yet" after 5 minutes, or "Could not check for your trace". Buttons are Open trace, Connect another agent, Check again, Reload to sign in and Select an existing tracing key. Progress is kept for the browser tab.
Manage tracing keys dialog
The dialog lists each tracing key with its name, when it was created, and "Expired", its expiry date or "No expiry". Use key in my project picks the key for the setup instructions. Revoke (proxy admins who are not read only) asks for confirmation. Agents using the key stop sending traces, and revocation cannot be undone. Press Confirm revoke to revoke or Cancel to keep it. With no keys the dialog reads "No tracing keys yet. Create one on Home to connect an agent.", and a load failure shows "Could not load tracing keys." with Retry.
Agents tab
The tab lists agents seen in the last 14 days, with Connect project in the toolbar, which opens Home.
| Column | Meaning |
|---|---|
| Agent | The agent name and its framework |
| Runs | How many runs were recorded |
| Errors | How many runs had errors |
| Last active | When the agent last sent a trace |
| PR evals | A Connect GitHub button for proxy admins who are not read only, outside demo data |
Search agents… filters the list. Empty states are "No agents yet" (agents appear once Lens receives their traces) and a message that no agent matches your search. A load failure reads "Could not load agents. Refresh the page to try again.".
Traces tab
The Traces tab lists recorded runs of the selected agent.
| Control | Type | What it does |
|---|---|---|
| Search | Text field | "Search input or trace ID". Also accepts key:value terms over name, agent, status, model, input and trace id. |
| Status | Dropdown | All status (default), No errors or With errors. |
| Connect project | Button | Opens Home. Shown once runs exist, disabled with demo data. |
| Refresh traces | Button | Reloads the list. |
| Time range | Dropdown | Last hour, Last 6 hours, Last 24 hours (default), Last 7 days or Last 30 days. |
| Live | Toggle | Keeps the list updating. Hidden with demo data. |
| Show activity / Hide activity | Button | Shows a histogram of runs over the range. Dragging across it zooms the list to that window, and the zoom chip clears it. |
| Columns | Menu | Hides or shows columns. The choice is remembered in the browser. |
A counts line shows loaded runs, agents and recorded steps.
| Column | Meaning |
|---|---|
| Time | When the run started, in your local time zone |
| Agent | The agent |
| Input | The run's input, or the number of step errors, "Run error", "No input recorded" or "Partial totals" |
| Signals | Signal checks on the run, or "-" when signals are not set up, "Checking", "Not checked" or "Unavailable" |
| Agents | How many agents took part |
| Steps | How many steps were recorded |
| Duration | How long the run took |
| Cost | What the run cost |
| Findings | Findings linked to the run. Proxy admins and proxy admin viewers only. |
| Feedback | The average user rating out of 10, red at 4 or below, or a dash |
Rows that a signal flagged are tinted red. Proxy admins who are not read only see a Set up pill in the signals header. Clicking a row opens the trace inspector.
Empty and error states are "No runs in this time range" with Connect project, "No runs match these filters." (which also offers Connect project), "No loaded runs match these filters." with Load older runs, "Could not load runs" or "Could not load more runs" with the error and Retry, and "Could not check earlier traces." with Retry trace check. A signed out session reads "Your session is no longer valid. Sign out and sign in again.", and a refused one "Your account does not have access to these traces.". When the gateway has trace storage turned off, or no trace was ever received, a Waiting for traces screen asks you to connect your project, with Connect project or Continue setup and Check for traces.
Trace inspector
The inspector opens as a panel next to the list. Close (Esc), Next trace and Previous trace (the J and K keys), Enter full screen and a drag handle to resize it are along its edge.
| Control | Type | What it does |
|---|---|---|
| Copy trace ID | Button | Copies the trace id. |
| Live | Button | Refreshes the run every 30 seconds until you click it again. Disabled with demo data. |
| Refresh run | Button | Reloads the run. |
| Copy for agent | Button | Copies a curl command that fetches the run with $SPANWAY_API_KEY, then shows "Command copied". |
| More run actions | Menu | Copy link, and Add run to dataset for proxy admins who are not read only. |
| Steps, Thread, Graph, Comments | Tabs | The step view, the conversation view, the agent graph or the team's notes on the run. Steps is the default. Graph and Comments are not shown with Demo data on. |
A status pill reads "Recorded", "Errors recorded" or the number of step errors, next to signal pills and the run's totals. When users rated the run, a User feedback banner shows the ratings and their average. Signal evidence shows under the pills when you open a signal. When a run has more steps than were loaded, "Showing x of y steps" comes with Load more steps. A failure reads "Could not load trace" with Retry and Back to traces.
The Steps view lists every step as a Tree or a Waterfall. Its options menu has Hide framework spans and Collapse branches. Filter steps searches the steps, the All and Errors chips narrow them, and "No matching steps" comes with Clear filters.
Clicking a step opens its details with Duration, Tokens, Cost and Step, and buttons Copy span ID, Copy step, Close details and, on agent and model steps, Add this turn to dataset.
| Tab | What it shows |
|---|---|
| Content | The step's input and output, Formatted or Raw |
| Request | For a model call, the usage and the spend log entry with its request id, Copy request ID and a Spanway Spend Log button that opens the gateway's log drawer for that request. Other steps read "This span is not a model request.". When the spend log is outside the time range or the cost could not be matched, it says why. |
| Attributes | The step's identifiers and attributes |
The Thread view shows the run as a conversation, with Load more, Inspect on a turn, View full conversation and Load more messages.
Search tab
Finds agent runs from the last 7 days whose steps contain every word you type. It helps when you know what a customer or an error said but not which run it was.
| Control | Type | What it does |
|---|---|---|
| Search text | Text box | The words to find, up to 500 characters. Every word must be in the same step, upper and lower case do not matter, and a "quoted phrase" must match as written. |
| Search | Button | Runs the search. Disabled while the box is empty. |
| Agent name in a result | Link | Opens that run on Traces. |
Each result shows where the words matched (Input, Output, Error or Name), when the run started, the step, how many steps matched and a snippet. The line above the results lists the fields searched. Content your role hides is never searched, and a search that looks inside content writes a viewed row to the audit log with a fingerprint of the words, never the words. See search.
Sessions tab
Lists the conversations of the last 7 days, most recently active first, so you can read a whole chat instead of one run at a time. Your app groups runs into a session by sending the same session.id (or gen_ai.conversation.id) attribute on each run.
| Control | Type | What it does |
|---|---|---|
| Session id contains | Text box | Keeps sessions whose id contains the text. |
| Session id | Link | Opens the session as a thread. |
| All sessions | Button | Goes back to the list. |
| Open run | Link | Opens that turn's run on Traces. |
The list shows each session's agents, runs, failed steps, tokens and last activity. A thread shows every turn's first input and final output, with "Hidden by your role" where your role hides them. Opening a session writes a viewed row to the audit log. See sessions.
Graph and Comments views
In an open run, Graph draws the run node, every agent, tool and model, and the links between them with their calls, failures and time, and a table under the picture lists the same links in words. Failing links are drawn in red. It helps you spot an agent that loops or a tool that keeps failing. See agent graph.
Comments lists your team's notes on the run, oldest first.
| Control | Type | What it does |
|---|---|---|
| New comment | Text area | Your note, up to 4,000 characters. Hidden for admin viewers and internal viewers, who see "Your role can read comments but not add them." |
| Add comment | Button | Saves the note. Disabled while the text area is empty. |
| Edit | Button | Shown on your own comments, and on every comment for proxy admins. Opens the text for editing with Save and Cancel. |
| Delete | Button | Shown with Edit. Removes the comment for good. |
Every new, edited or deleted comment writes an audit row with a fingerprint of the text. See comments.
Findings tab
Findings are problems automatic analysis found across your traces. The tab is for proxy admins and proxy admin viewers, and everyone else reads "Findings require proxy administrator access.".
A status bar shows where analysis stands, for example Running, Queued, Paused, waiting for traces with a count out of 10, ready for the first analysis, the last analysis failed or was cancelled, the daily analysis budget was reached, or the selected model is unavailable, with when the next run happens. With no analysis model it reads "Connect an analysis model to start receiving findings." with Connect model. Findings start automatically after 10 traces from an agent.
Findings settings dialog
Settings in the status bar (proxy admins who are not read only) opens Findings settings.
| Control | Type | What it does |
|---|---|---|
| Model | Searchable dropdown | The model that analyzes traces. A warning shows when the model is unavailable for analysis. |
| Prompt | Text area | The analysis prompt. |
| Frequency (minutes) | Number field | How often Lens looks at each agent's new traces for problems. At least 1. A shorter time finds issues sooner and spends more of the budget. The help line under the field says the same. |
| Monthly findings budget (USD) | Number field | The most Lens spends on analysis model calls each month, 100 USD by default, above 0. Once this month's spend reaches it, Lens starts no new analysis until the next month. |
| Automatic analysis | Switch, under Advanced | On means Lens checks each agent on the schedule above and spends model tokens up to the monthly budget. Off means no new findings appear until someone runs an analysis by hand. Proxy admins change it, and the help line under the switch says the same. |
| Additional instruction N | Text fields, under Advanced | Extra instructions for the analysis. |
| Save changes | Button | Saves. Disabled while a value is invalid, with no message saying which. |
The dialog notes that the first automatic run waits for 10 traces.
Findings list and detail
Filter by priority offers All priorities, High, Medium and Low. Filter by agent shows only when no agent is selected. Findings are grouped by priority, and each row shows its age and how many traces it affects. Only open findings are listed. A footer counts the findings shown. With none it reads "No findings yet. Automatic analysis checks your traces and reports problems here." or "No findings match these filters.".
Clicking a finding opens its detail with Copy for agent and Close. It shows the priority, agents, affected traces and how many analysis runs found it, then a summary, a Suggested fix, an issue brief with test cases you can copy for a coding agent, the limits of the evidence, a frequency chart under Monitors, and examples with View span, View request, View trace and Show N more examples.
For users who are not read only, a review form asks "What should Lens remember?" with Mark resolved and This is expected. Both take the finding out of the list, and the page has no view of resolved or dismissed findings to bring it back.
Datasets tab
Datasets hold cases saved from real runs. The tab is for proxy admins and proxy admin viewers, and everyone else reads "Datasets require proxy administrator access.".
The list shows Dataset, Agent, Revision, Cases and Updated, with a footer counting datasets and cases. There is no create button. You create a dataset by choosing Add run to dataset or Add this turn to dataset in the trace inspector. With none it reads "No datasets yet" with that hint, and a failure reads "Couldn't load datasets" with Try again.
Dataset detail
| Control | Type | What it does |
|---|---|---|
| Copy dataset ID | Button | Copies the id. |
| Revision | Dropdown | Each saved revision, starting at 0, with "(latest)" on the newest. Older revisions are read only. Switching revisions drops unsaved edits. |
| Export JSONL | Button | Downloads the revision's cases as JSONL. |
| Save as revision N | Button | Saves your edits as a new revision. Only on the latest revision, only for users who are not read only, and disabled until something changed. |
The Cases table has Include (a checkbox), Input, Reply, Expected, Source and Tool calls. Clicking a case opens a panel with an Included toggle, Case and Source tabs, an Expected text area ("What a good reply looks like") and a button that opens the trace the case came from. An older revision reads "Revision N is read-only. Switch to the latest revision to make changes.". If someone saved a newer revision while you were editing, a message says so with Reload.
Add to dataset dialog
The dialog saves a copy of each conversation, so it stays after the trace expires.
| Control | Type | What it does |
|---|---|---|
| Dataset | Dropdown | New dataset or an existing dataset. |
| Name | Text field, new datasets | Up to 120 characters. Defaults to the agent name followed by "cases". The placeholder is "checkout regressions". |
| Cases | Checkboxes | Which cases to include. |
| Expected | Text area per case | Optional, "What a good reply does". |
| Save N cases | Button | Saves. A success toast offers Open dataset. |
| Cancel | Button | Closes without saving. |
Cases that cannot be added are listed as skipped with the reason, for example already in the dataset, no conversation or reply recorded, too large, or the dataset is full. When nothing is left it reads "Nothing new to add.". A conflict with a newer save offers Reload.
Evals tab
Evals run an agent over a dataset and score the results. The tab is for proxy admins and proxy admin viewers, and everyone else reads "Evals require proxy administrator access.".
The list shows Eval, Execution ("HTTP contract" or "Code / SDK"), Agent and Dataset (with its revision or "@latest"), and New eval in the toolbar. With none it reads "No evals yet" with a short explanation.
New eval
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required | Lowercase letters, digits, - or _. The placeholder is "agent-regressions". |
| Dataset | Dropdown, required | "Pick a dataset". |
| Agent | Dropdown, required | The agent to evaluate. |
| Task completed | Scorer checkbox | On by default. |
| Tool order | Scorer checkbox with two tool names | Checks that one tool is called before another. Both names are required. |
| LLM judge | Scorer checkbox with a question | A judge answers your question about each run. The question is required. |
| Trials | Number field | Runs per case. A positive whole number, default 3. |
| Max regressions, Max critical | Number fields | Gate limits, default 0. |
| Min pass %, Max $/case | Number fields | Optional gate limits, off by default. The pass rate is at most 100. |
| Create eval | Button | Creates the eval. |
| Cancel | Button | Goes back. |
At least one scorer is required. Validation messages show under the fields, such as "Name must be lowercase letters, digits, - or _", "Pick a dataset", "Agent is required", "Name both tools for the ordering check", "The judge needs a question", "Pick at least one scorer" and "Trials must be a positive whole number".
Eval detail and runs
An eval shows its execution, agent, dataset and Scoring configuration (scorers, trials per case and pass criteria). With no runs, No runs yet explains two ways to run it. Run it in your project has Copy Python test, Copy test command and SDK setup guide. Run in GitHub Actions has Connect GitHub for users who are not read only, and asks others to contact their Lens admin.
Once runs exist, Run again starts a run through the connected GitHub Actions workflow, or reads Connect GitHub to run again or Set up execution when that is missing. It is hidden with demo data. A status line says when GitHub Actions accepted the request, or when no new results arrived after 5 minutes, with Open workflow. The Run history table shows Status, Branch / commit, Cases (passed and failed) and Run. Opening a run shows its checks, each test case with its result, run details (run id, baseline and regression policy), and per case the trials, checks, traces and the recorded output and steps.
GitHub App dialogs
Connect GitHub opens from the tab bar, an agent row or an eval. When the GitHub App is set up for Lens but not connected yet, the dialog sends you straight to the GitHub App authorization page. Its states are "Checking GitHub connection", "GitHub connection unavailable" with GitHub connection guide and Check configuration when the gateway has no GitHub connection enabled, "Completing GitHub authorization", Give Lens access to a repository with Install GitHub App and I already installed it, Choose a repository with a GitHub repository dropdown and Connect repository, and GitHub connected with the repository, Set up PR evals, Restore GitHub access, Manage repository access and Disconnect. Disconnect removes the connection at once without a confirmation, and the gateway writes an audit row for it, as for every other Lens change.
Set up PR evals walks through three steps.
| Step | Controls |
|---|---|
| Choose repository | GitHub repository (an owner and repository name, or the repository address), Eval to run (or Create eval, or a hint to create a dataset first), Lens URL (an HTTPS address that is not localhost, defaulting to the gateway's address), and optional agent runtime fields for an existing eval task and an install and start command |
| Set up workflow | The workflow files with a copy button each, Open repository secrets, Open repository variables, Open Lens workflow and I’ve added the workflow |
| Verify PR eval | Waits for a baseline from the main branch, then offers View eval result and Open PR |
Settings tab
The tab is shown only to proxy admins who are not read only.
Tracing shows "Tracing enabled" or "Tracing is not enabled", with Manage tracing keys, Deployment setup, Docs and Connect project.
Signals sets which runs get flagged in the traces list.
| Control | Type | What it does |
|---|---|---|
| System 1 model | Searchable dropdown | The model that checks runs for signals. |
| Flag at score | Number field | 5 to 95 in steps of 5. Otherwise "Use a whole number from 5 to 95". |
| Flag runs where | Picker | User frustration, Missing capability, Repeated request, Asked for a human, Tool failure, Refused request, and Add your own for a custom signal with a name and a yes or no question about the run. |
| Save signals | Button | Saves. At least one signal is required. |
Custom signals need a unique name and a question. If someone else changed the signals, "Signals were changed elsewhere" offers Load latest. A model list failure offers Retry model check.
Analysis shows whether analysis models are configured, with Configure analysis models, Check configuration and View automatic analysis. With none it reads "Add an analysis provider".
Empty, error and disabled states
When Lens is not running or not configured, the Get started screen and the Home banner say what is missing, and other tabs show their load errors. When trace storage is off, the Traces tab shows Waiting for traces. A signed out session asks you to sign in again, and a refused request says your account does not have access.
Controls are hidden rather than disabled for users without the right role, as listed below. Disabled controls are Live and Connect project with demo data, the Get started step buttons until there is activity or for users who cannot configure analysis, Save as revision until something changed, and Save changes while a findings setting is invalid.
Differences by role and license
| Who | What they get |
|---|---|
| Proxy admin | Every tab and every control |
| Proxy admin viewer | Every tab except Settings, read only. Create key, revoke key, send test trace, add to dataset, save revision, findings settings and review, and Connect GitHub are hidden. |
| Internal user, internal viewer, org admin | Home, Agents, Traces, Search and Sessions, scoped to what they may see. Findings, Datasets and Evals say they need proxy administrator access. No Settings and no tracing key management. Internal viewers are read only. |
Lens enforces these rules itself. Datasets, findings and tracing keys need a proxy admin or proxy admin viewer to read and a proxy admin to change. Evals and GitHub App connections accept any user with a team or user scope, but refuse changes from viewers with "This credential is read-only". The New eval button does not check read only status, so a proxy admin viewer can open the form and gets that error on save. The Lens page opens without a license, while the Datasets and Evals tabs need the evals feature on the gateway. Every change made on this page is written to the gateway's audit log on the Lens table, see Lens.
Errors
| What you see | What it means | Fix |
|---|---|---|
503 naming LENS_GATEWAY_SECRET, SPANWAY_LENS_URL or SPANWAY_LENS_SERVICE_TOKEN | The gateway has no usable Lens connection. The secret must be 32 to 512 bytes and the token at least 32 characters. | Deploy Lens and set the variable the message names, see deploying Lens. |
403 "Your Spanway license does not include the 'evals' feature. Contact sales@spanway.ai to add it." on Datasets or Evals | The license lacks evals. | Add the feature to the license. The other tabs keep working. |
503 "Lens forwarding capacity is busy; retry shortly" | The gateway is buffering as much Lens traffic as it allows. | Wait a second and retry. |
413 "Lens request is too large" | A request or answer is over 64 MiB. | Narrow the time range or page size. |
| "Lens service is unavailable" | Lens is down or unreachable. | Check the Lens worker. |
| "Sign in again to connect your agent." | The session expired. | Click Reload to sign in. |
| "Ask your Lens administrator for a tracing key, or use one already in your project." | Only proxy admins create tracing keys. | Ask an admin for a key. |
| "No trace received yet" | No trace arrived within 5 minutes. | Check the key and endpoint in the agent's environment and click Check again. |
| "The search could not run. Try again shortly." | Lens did not answer or the search ran past the reader limits. | Retry, or use fewer words or a rarer word. |
| "Read only roles cannot change comments on traces" | Viewer roles may only read comments. | Ask someone with a writing role. |
Logs
The page writes no log lines of its own. The gateway logs the Lens content policy warnings the Lens overview lists, and the Lens worker logs to its own container.