Console

Usage, requests, and audit

Diagnose calls using request facts and trace management changes through immutable events.

Traces

Open Workspace → Traces to aggregate model calls by session_id (default) or run_id, filter by session_id, run_id, user_id, API key, and date range, and inspect each Run in the split-pane tree/timeline viewer. See the dedicated Traces guide for setup steps, SDK examples, and field rules.

Reuse a run_id across calls in one execution and a session_id across executions in one conversation. IDs remain isolated by Workspace and API key. Calls without run_id remain in request logs. user_id and user_name come from Metadata and are distinct from Shieldon account IDs.

Totals include all matching calls in the selected window, independently of request pagination. Observed timestamps do not imply business completion. Missing usage, unpriced calls and conflicting attribution are marked separately. Runs with conflicting Session attribution remain separate and do not match Session filters. Details load requests incrementally; content access and retention follow request-log rules. Unrecorded business stages and tool calls cannot be reconstructed.

From usage facts to business value

Use request IDs, identity, metadata and policy versions to correlate cost, failures and control outcomes. Cost allocation depends on configured attribution and rates. Unrated usage is not zero cost, and Credits are not a provider invoice. Assess task quality, rework and automation opportunities with business owners; these are diagnostic activities, not an automatic ROI calculation.

Overview and request logs

Overview includes usage analytics: requests, success rate, cost, tokens, average latency, route attempts, request outcomes, token composition and recent requests. Its filter area contains only a single-select Gateway API key; time controls remain at the top. Legacy /workspaces/{workspace_id}/analytics links open Overview.

Request logs offer single-select Gateway API key and status filters that can be combined or cleared. In recent requests and request logs, use Actions → Request details. Workspace audit is in the Workspace sidebar group; use Actions → View details for an event. Organization audit remains in organization scope.

Filter by caller and Metadata

In request logs, filter by Shieldon caller ID or indexed, non-sensitive Metadata. Enter a key to match requests containing it, or a key and value for an exact match. Multiple conditions must all match. Shared keys may have no individual caller. Exports use the same filters.

When bodies were saved and you have access, open View conversation to read messages, tool calls and tool results in order.

With permission to read bodies, request log exports include the text of the last user message in the Excel column last_user_message by default, even without input attachments. Media-only messages and unsaved, truncated or expired inputs leave the cell blank.

Inspect model calls

Workspace request details show models, Providers, status, latency, attempts, and normalized usage. Use the request ID to associate retries and fallback, and time plus Metadata to find the source. Details show metadata by default.

Request overview and diagnostics

Open Workspace → Request logs → Actions → Request details. A single overview brings together model, status, Policy, Release, duration, attempt and decision counts, final model and Integration, Guardrails, source IP, client, completion reasons and upstream request IDs per attempt. The execution timeline follows below. Business context remains in the existing Metadata section without a duplicate attribution panel.

An upgraded Gateway collects diagnostics for new requests; the console and export service also need the corresponding version. Missing fields in older records show Not recorded and export as empty cells. History is not backfilled.

Source IP and client

peer_ip is the actual network peer of the gateway; client_ip defaults to the same address. Behind a reverse proxy, this is the proxy address by default. It may also identify a business server or NAT exit, rather than an end user.

Administrators can set GATEWAY_TRUSTED_PROXY_CIDRS to a comma-separated list of controlled proxy CIDRs and restart the Gateway. Empty by default, it trusts no proxy. X-Forwarded-For is parsed only when the immediate peer is trusted, skipping trusted proxies from right to left and stopping at the first untrusted address. Invalid chains fall back to the peer and report invalid_forwarded. Use the narrowest ranges for actual controlled proxies, with the ingress overwriting or correctly appending the chain. IPv4/IPv6 are supported; Forwarded and X-Real-IP are not parsed. API key source-IP authorization is unchanged.

Client details retain only allowlisted products and versions, recognizing OpenAI Python/JS and Anthropic Python SDKs. Unknown User-Agent values are not stored. Optionally send X-Shieldon-App-Version: build-42: at most 64 characters, starting with a letter or digit, then letters, digits, dots, underscores, plus or minus signs. Client details are caller-reported, not authentication evidence.

Completion reasons and upstream correlation

finish_reason describes model completion: stop, length, tool_calls, content_filter or unknown. end_reason describes final delivery, also distinguishing cancellation, timeout, interrupted streams, upstream errors, rejection and safety-check outcomes. HTTP 200 does not guarantee complete generation. Output limits are separate from transport failures, and recovered retries do not imply final failure. Successful delivery with an unknown model reason is completed.

Each upstream attempt retains its model, Integration, HTTP status and the request ID returned by the provider for troubleshooting. At most 100 attempts are retained, with truncation indicated. A missing upstream ID is never replaced by the gateway request ID. Realtime records sessions, leaving model completion unrecorded; internal Decision or standalone preview records may lack diagnostics. Missing streaming end markers or markers exceeding parsing limits can also leave the model reason unknown.

Exports and data scope

Request-log Excel exports add separate IP, client and completion-reason columns. Per-attempt details appear in the upstream_attempts JSON column for offline filtering and analysis. Arbitrary Metadata is not automatically exported in full. These dimensions do not add console filters, geolocation or aggregate dashboards.

Queries and exports retain organization and Workspace permissions, without additional collection of prompts, model output or full request headers. IP addresses are identifying data and belong in administrators’ log-access and retention controls. This change adds neither an IP masking switch nor automatic deletion.

Inspect management audit events

Organization and Workspace audit records identify the actor, action, resource, and changed field names. Publishing, rollback, and controlled content reads require audit events; audit lists do not offer editing or deletion.

Usage status and diagnostics

Treat missing usage as unknown rather than zero. Share sanitized request IDs and error types for diagnosis, not actual content or authentication material.

Authenticated inference rejections are recorded even before routing. Request details include HTTP status, error code and rejection stage. A model absent from the active Release returns 404 model_not_found. Authentication failures are separate platform security log events without a guessed tenant.

Usage distinguishes reported, missing and not-applicable requests. Overview shows missing-usage counts separately from legacy unknown coverage; optional cache details are independent, and an explicit cached-token zero remains zero. Requests without effective published Credit rates display Unpriced and are excluded from Credit budgets. Historical records without rate evidence display unknown coverage. Existing history is not reconstructed.

Next steps