AI agent observability: The task failed, but the API returned HTTP 200 OK

Use Kubernetes probes for service health and track what users receive with OpenTelemetry and Datadog.

By · · 10 min read

A successful status request can report a failed run. Measure tasks by what reaches the user, budget for logical tool failures separately, and use OpenTelemetry and Datadog to alert when too many sessions miss their deadline.

A customer needs a different size of the boots they ordered. The agent looks up the order and requests a return label. The request times out, and the retry fails. On its next poll of `GET /runs/{id}`, the client gets `HTTP 200 OK` and a run record with `outcome: failed`. The 200 status in that response tells you the client retrieved the record. [S1] To catch a problem with label delivery, measure the task outcome separately from the status request.

Read the full article on LearnXops (free with a LearnXops account).