LLM Observability
How data gets in
LLM Observability has no automatic capture. Model calls happen on your server, so you report each one from the code that makes it: through a server SDK (captureTrace in Node), or with one HTTP POST per call, authenticated with a project API key.
POST https://api.billdog.io/v1/llm/trace
X-BillDog-API-Key: <your api key>
Content-Type: application/json
{
"traceId": "req_8f21c0", // required — groups spans of one request
"spanId": "span_1", // required — unique within the trace
"parentSpanId": "", // optional, for nested calls
"model": "claude-opus-4", // required
"inputText": "...", // required — the prompt you sent
"outputText": "...", // required — what came back
"promptTokens": 812,
"completionTokens": 240,
"durationMs": 1840,
"costUsd": 0.0192,
"properties": { "feature": "summarise" },
"metadata": { "user_tier": "pro" },
"timestamp": "2026-09-02T10:15:00Z" // optional, defaults to now
}The key can also be sent in the body as api_key (never as a bearer token). Traces land in the sandbox or production environment according to the key you used.
Cost is a number you report, not one BillDog computes. There is no price table per model — whatever you put in costUsd is what the Cost tile adds up. Send it in dollars, and send it consistently, or the totals will not mean anything. The same is true of durationMs: measure it the same way at every call site.
Prompt management
The Prompts tab is a versioned prompt store, and it is fully wired at both ends. Write a prompt template in the dashboard, save it, and fetch it at runtime instead of hard-coding it into your service:
GET /functions/v1/llm/prompts/<name> # latest version
GET /functions/v1/llm/prompts/<name>?version=3 # a specific one- Saving always creates a new version rather than overwriting. Nothing is lost, and you can pin a service to a known version while you edit the next one.
- Fetching without a version gives you the highest one. So saving a new version rolls it out immediately to every caller that is not pinned — that is the deploy step, and there is no separate publish action.
- Names are slugified on creation. Anything outside lowercase letters, digits and underscores is replaced, so “Summarise Ticket” is stored as
summarise_ticket. Use the stored name in your API call. - Variables are documentation, not templating. The variable list is stored alongside the template and returned to you; BillDog does not substitute anything. Your code does the filling in.
Reading the four headline numbers
They are not all computed over the same set of traces, and two of them will mislead you if you assume they are.
| Tile | What it is actually over |
|---|---|
| LLM Requests | Every trace in the window. Reliable. |
| LLM Cost | Every trace in the window, summing what you reported. Reliable. |
| Total Tokens | The 50 most recent traces only. It sits in the same row as the two above and covers a different, much smaller population. Do not divide Cost by it, and do not read it as your monthly token spend. |
| Average Latency | The mean of each hour’s average, weighted equally. A quiet hour with one slow call counts as much as a busy hour with ten thousand fast ones, so it overstates latency on spiky traffic. Use the trace list to see the real distribution. |
The window is fixed at the last 30 days, bucketed hourly. There is no date control on this page, so you cannot narrow to an incident or widen to a quarter here.
The trace list itself shows the 50 most recent calls. It is a tail, not a sample — useful for looking at what just happened, not for measuring anything.
Evaluations
The Evaluations tab has no data behind it. Nothing in BillDog writes an evaluation result — there is no endpoint for submitting one and no scorer that produces one — so the tab is empty for every project. The Run button next to a suite does not execute anything: it waits two seconds and reports success. And when the tab has nothing to show it displays three named evaluators with pass rates in the high eighties and nineties, which are illustrative figures, not measurements of your prompts.
If you are evaluating model output today, keep doing it wherever you do it now. You can record the outcome as a property on the trace — properties is free-form — and read it back from the trace list.
If a tab looks empty
Sample traces appear whenever the trace list is empty, so a project that has never sent one shows an illustrative dashboard. That decision is made on the trace list alone: once you send real traces you leave sample mode entirely, including on the Evaluations tab, which then shows its true empty state.
An Evaluations tab that fails to load also renders as “no evaluations” rather than as an error, so an empty tab is not by itself evidence of anything.
Related
- API Reference — API keys and authentication
- Web Analytics, Errors & Heatmaps — the other capture-dependent reports
- Product Analytics
Was this page helpful?
Or rate this page: