Introducing Confident Monitor

Observability Workflows

Run tasks on your traces, spans, and threads automatically after they hit the platform.

Included on the Enterprise plan. Book a demo, opens in a new tab. Included on the Team plan. Included on the Starter plan. Not included on the Free plan.

Overview

Observability workflows decide what happens to your traces, spans, and threads after they reach Confident AI: which become dataset goldens, which go to human reviewers, which get evaluated, and how they're labeled. Each workflow runs a set of tasks whenever its trigger fires, with no code changes.

A workflow's trigger and tasks, drawn as a graph

How It Works

  1. A trigger fires: a trace, span, or thread is ingested, or an end user annotates one.
  2. Every enabled workflow for that trigger checks the item against its trigger filters (leave them empty to match everything).
  3. The workflow runs its tasks on the items that match: ingesting them into a dataset or an annotation queue, evaluating them, or classifying them.
  4. A task can be chained after a classifier, so it only runs on traces that got particular labels.

Open Workflows under Configure in the Observatory's side navigation. Pick Traces, Spans, or Threads at the top, then a trigger tab. Each workflow is drawn as a graph, from its trigger to its tasks, with every task listed in the panel below it.

Available Tasks

A workflow can run four kinds of task:

TaskWhat it doesAvailable for
Dataset Ingestion TaskAdds matching items to a dataset as goldensTraces, Spans, Threads
Queue Ingestion TaskRoutes matching items into an annotation queue for reviewTraces, Spans, Threads
Evaluation TaskRuns a metric collection on matching itemsTraces, Spans, Threads
Classifier TaskLabels matching items with an LLM classifier; the labels surface as SignalsTraces, Threads

Add a task to a workflow from the graph's Add action node (pick an existing one or Create new), or from a task's … menu → Manage workflows. One task can belong to several workflows, and an item that matches more than one of them is still only ingested once. A task only runs while it belongs to a workflow: tasks in none are listed under Not in any workflow and do nothing until you attach them.

Chaining Tasks

On Traces, a dataset or queue ingestion task can run after a classifier task. The ingestion task then only picks up traces the classifier gives one of the labels you choose, so you can, for example, send every trace labeled Escalation to Human straight to a review queue.

To chain a task, click Add action under a classifier in the graph and pick Queue Ingestion or Dataset Ingestion, or set Runs after (a classifier and its labels) when you create the task. For an existing task, open Manage workflows from its … menu and use Add parent. A chained task shows up under its classifier in the graph, marked with a When <classifier> = <labels> pill.

A chained task waits for the classification: it runs as soon as the classifier's results are written, instead of on its usual five-minute sweep. A task can run after several classifiers, and removing a classifier from a workflow also removes the tasks chained only to it.

Workflow Triggers

TriggerRuns whenAvailable for
IngestedA trace, span, or thread arrives on the platform, before anything else has looked at itTraces, Spans, Threads
End-user annotationAn end user leaves feedback through the annotations APITraces, Spans, Threads

Each trigger has a default workflow per data type (Ingest and End-user annotation). Tasks created without picking a workflow, such as from the API or from a dataset or annotation queue page, land in the default Ingest workflow. Create more with New workflow (up to 20 per data type and trigger), and give each its own Trigger filters. An End-user annotation workflow can filter on the annotation itself: thumbs or star rating, annotation name, and end user.

Next Steps

Ready to monitor AI in production?Connect traces, alerts, dashboards, and evals in one production workflowBook a demo

Last updated on

Built byConfident AI