Subjects
Agent Analytics has exactly four subjects. They’re the same in every workspace and don’t depend on your schema.| Subject | What it is | Identified by |
|---|---|---|
| User | The end user who started the trace | User ID |
| Session | A group of related traces, such as one conversation | Session ID |
| Trace | One end-to-end agent run or request | Trace ID |
| Span | One operation inside a trace: an LLM call, a tool call, a retrieval | Span ID |
Trace and Span
A trace is one run of your agent, from the incoming request to the final response. A span is one timed operation inside that trace, with a start time, an end time, a parent and a set of attributes. Kubit uses standard OpenTelemetry traces and spans. A span your existing OpenTelemetry setup produces is a span in Kubit, with no conversion, and is used as the base level event for analytics (the same as a clickstream event). Availability: In Agent Analytics, “time” is span’s “start time” unless a page says otherwise.Execution Path
An execution path is the ordered sequence of spans (steps) in one trace: which tools and model calls ran, in what order. Two traces that calledsearch_orders, then get_refund_policy, then the LLM, share one execution path, even if their inputs differ.
Flows draws every execution path in one Sankey. Each path shows how many traces took it, so a failure that repeats a thousand times shows up as one path with a count of 1,000.
Each span in a trace is one step, in order of span start time. Flows names a step by the action Polaris annotates the span with:
| Span | Step name |
|---|---|
| LLM call | The task named from its system prompt, such as generate_title, or else its decision, such as reply or call_<tool> |
| Tool call | The tool name |
| Anything else | The span name |
search_orders three times in a row has three search_orders steps. The Fold Label adjustment in Flows turns consecutive spans with one label into one step.
When two runs call the same tools with different arguments, Polaris labels or custom eval scores may split them into separate paths.
Polaris Annotations
Annotations are the labels and scores Polaris adds to every span. Polaris is Kubit’s in-house small language model. It annotates each span in under a second, on every span, with no additional LLM cost or sampling. Polaris has three parts.| Part | What it produces |
|---|---|
| Classifier | Labels on every span automatically, using taxonomy trained over 30+ domains |
| Eval | Scores from your own eval prompts. A score can be a number, a true/false or a value from a list you define. |
| Fine-tuning | Custom adapters retrained on the corrections your team makes in the workspace for classifier or eval |
Annotation Types
Every span gets one of five annotation types.| Type | Meaning | Examples |
|---|---|---|
| Action | The span did its job: an LLM call, a retrieval or a tool call | get_order_status, check_out |
| Exception | The call failed: an exception, a 4xx or 5xx response, a timeout or no network | timeout, unauthorized |
| Misstep | The call ran, often with an OK status, but did the wrong thing | wrong_tool, malformed_args |
| Warning | The span is a risk even if it worked: a loop, high cost, high latency, high frequency, detected PII or a spike | loop_detected, pii_detected |
| Behavior | What the agent and the user did and said: intent, sentiment, hallucination and similar annotations | aggression, cursing, repeated_prompts |
wrong_tool or wrong_parameter label.
Workspace
A workspace holds one set of traces, their Polaris annotations and its reports. An organization can have several workspaces, for example one per environment or per agent/app.Example Prompts
“Show me the sessions for user 8812 in the last 7 days”
“Which execution paths for the support agent had a Misstep on a tool call yesterday?”
“Compare the Exception rate by model version for traces in the last 30 days”
Related
- Agent Analytics overview: the features built on these concepts.
- Quickstart: how your spans map to users and sessions.
- Quickstart: send your first traces.