glossary

Observability

Session

A session is the person's conversation with the agent, which may contain several traces when several runs happen inside that same stretch of chat, and it is the unit a reviewer opens when the question is about the person rather than one call.

Abracadabra Team Glossary

How it works

A session groups the turns in one stretch of conversation. A trace groups the steps of one run. One session often holds several runs, each with its own trace. Timeout rules create sessions as much as people do. A short idle gap can split one job into two sessions and hide the retry. A long window can glue a morning chat to an evening one. Write the rule down. The person is not the session. The same person can return many times, and a shared inbox can put two people in one session, which you should mark rather than define away.

A facilities manager uses one chat for three work orders: a boiler, a sticking door, and a stair light. If each order starts a run, that is one session and three traces. The boiler trace answers whether the boiler was logged. The session answers what the manager dealt with before lunch. One trace for the whole chat makes the light look like a step of the boiler job. A new trace on every message makes one diagnosis look like several visits.

A worked example

Three work orders in one facilities chat

Session rule: a new session starts after 30 minutes with no messages, or on the next calendar day.

09:02 The boiler in block C will not fire. Log it. Trace 1 ends with a contractor name.
09:07 The side door sticks. Trace 2, a second work order, same session. The gap is five minutes.
09:14 The light over the west stair is out. Trace 3, still the same session.

12:40 Any update on the boiler? The gap is past 30 minutes, so this is a second session, a return visit rather than a fourth job in the morning chat.

The morning session holds three work orders. A count of sessions with a boiler request includes it once.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • One trace is forced per session. The door and the light become steps of the boiler run, and a failure on the light is reported as a boiler fault to the contractor.
  • The idle timeout is shorter than the time spent reading. One boiler diagnosis splits into two sessions, and the retry looks like a new person with the same fault.
  • The person id is missing. The afternoon boiler update looks like a stranger, and the three morning orders cannot be tied back to the manager who raised them.

How to measure it

Write the session rule, including the idle gap and the calendar boundary, and keep the session id on every trace inside it. Count runs per session so three work orders show as three tasks in one conversation.

Say whether a rate uses the session, the task, or the trace. A session rate that needs every job in the chat to pass will punish the manager for also asking about the light.

Further reading

How Abracadabra helps

One conversation can hold several traces. Keep each task outcome on the session the person had, so three work orders stay visible as three jobs rather than one blended run.

A trace says the run finished. Abracadabra says whether the person got the job they came to do, and keeps that outcome on the conversation. It complements tracing and OpenTelemetry. It does not ingest spans or replace a trace tool.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.