Platform Docs
Try DatumoEval

Observability

Find issues in real user conversations with your AI agent in production using LLM observability: set up integrations and review fail cases.

DATUMO Observability connects the real user logs of your AI service in production and continuously checks whether the service responds safely and in line with your policies. If Evaluation is a test run on data you prepared before launch, Observability is closer to reviewing actual conversations after launch.

In short

When you connect logs through an Integration, they are organized into Sessions and Turns. Turns selected at the Sampling Probability rate are evaluated by Metrics, and when a Rubric in a Metric is judged a violation, it becomes a Fail Case that you review in the list and in alert emails.


Observability structure

Diagram
UnitRoleContains
IntegrationSettings that connect a log store and turn logs into TurnsConnection details, parser code
SessionOne bundle from when a user starts a conversation to when it endsMultiple Segments and Turns
TurnOne pair from User Input to App Output. The basic unit of evaluationMultiple Spans
MetricThe unit that evaluates a Turn1 Judge Model, 1–10 Rubrics
RubricA check item judged separately within a Metric-
Fail CaseA Rubric judged as a violation-

How it differs from Evaluation

CategoryEvaluationObservability
Evaluation dataA Benchmark Set prepared in advanceReal user logs from production
When evaluation runsWhen you execute a RunContinuously, as logs come in
Evaluation unitOne data itemOne Turn
ResultScoreWhether there's a violation (Fail Case)

See an example

Say you run a financial advisory chatbot and want to watch for violations of investment solicitation rules.

Example of one session being evaluated
TurnUser InputApp OutputResult
1What's the interest rate on installment savings?The current 12-month installment savings rate is 3.5% per year.Pass
2Then aren't stocks a better deal?If you buy now, you're guaranteed a profit. Buy right away.Fail Case: Advisory Policy: Investment Solicitation
3Thank you.I hope that helped.Pass

Turn 2 produces a Fail Case, so alert recipients get an email titled [DATUMO Fail Alert - Turn ID] - Advisory Policy. In the Fail Case list, you can view the full conversation of this Session.

The Metric names and conversation in this example are for illustration only.


Integration: connect logs

An Integration is the setting that brings your AI service's logs into DATUMO. Currently, it connects AWS CloudWatch logs.

  1. Enter the connection details (Region, Log Path, etc.) and verify the connection.
  2. Parser code finds the user questions and AI answers in the raw logs and groups them into Turns. Log formats differ by service, so you write the parser code yourself.
  • After you connect, the Integration card shows the connection time, last log time, and total number of Turns.
  • If your log format changes, switch to a new Integration. This increments the version.
  • If you no longer need an Integration, disconnect it. Once disconnected, no new logs are collected.
  • A disconnected Integration can't be turned back on. To use it again, create a new Integration.
  • Evaluation results from before the disconnect, the sampling probability, and Metric settings stay as they are.

Log hierarchy: Session · Segment · Turn · Span

Connected logs are organized into the hierarchy below. Screens and evaluations work based on these units.

Diagram
TermPlain EnglishDefinitionWhere it's used
SessionsessionOne bundle from the start of a conversation to its endCard unit in the Fail Case list
SegmentsegmentA part of a session split by topic-
TurnturnOne pair from User Input to App OutputBasic unit of evaluation, row in the Fail Case list
SpanspanIntermediate agent results produced on the way to a turn (Retriever, Router results, etc.)-
User Inputuser inputThe question the user entered in a turnEvaluation prompt variable user_input
App Outputapp outputThe final answer the AI service returned in a turnEvaluation prompt variable app_output

Sampling and Metrics: what to evaluate and how much

Sampling Probability is the percentage (0–100) of connected Turns to evaluate. Evaluating every Turn greatly increases cost and time, so you set a rate. A changed value applies only to Turns collected from then on.

A Metric is the unit that evaluates Turns, and each Metric consists of multiple Rubrics.

ItemDescription
Judge ModelThe model that judges the Metric. Choose from the models registered in G-4. Register Gen & Judge models.
RubricA check item. 1–10 per Metric. The Judge Model judges whether each Rubric is violated.
Prompt InstructionThe judgment criteria for the Rubric
  • The Safety Metric is included by default in every Application (DATUMO Default). You can change only its Judge Model, and you can't delete it.
  • When you turn off a Metric, Turns collected after that aren't evaluated. Past results remain.

How Metric, Rubric, and Fail Case relate

Each Rubric judged as a violation is one Fail Case. A single Turn can fail multiple Metrics, and a single Metric can produce multiple Fail Cases.


Fail Case: turns with a violation

The Fail Case list shows only Turns with at least one Fail Case. Turns from the same Session are grouped into one card, and each shows what was violated in the Metric name: Rubric name format.

  • Open a row to view the full conversation of the Session that Turn belongs to.
  • Set alert recipients for each Metric to receive an email when a Fail Case occurs.

Observability end-to-end flow

Production logs are processed in this order: collection → conversion → sampling → evaluation → Fail Case.

Diagram
  1. Logs are continuously pulled from the log path connected through the Integration.
  2. Parser code converts the logs into Sessions and Turns.
  3. Turns are selected at the Sampling Probability rate as evaluation targets.
  4. For each enabled Metric, the Judge Model judges whether each Rubric is violated.
  5. Rubrics judged as violations become Fail Cases, which accumulate in the list and trigger alert emails.

If there's no Gen & Judge model, Metrics go into the Evaluating Paused state and evaluation stops. To resume evaluation, register a model and select the Metric's Judge Model again.


Next steps

DocumentWhat it covers
O-1. Connect an IntegrationConnecting a log store, running parser code, managing and disconnecting Integrations
O-2. Evaluation settingsSampling Probability, Metrics and Rubrics, alert recipients
O-3. Fail CaseViewing the list of violating turns and Session conversations

Last updated