The Observability Gambit

Can OpenTelemetry traces predict when an LLM blunders? An LLM agent plays chess against Stockfish, and every move is a trace. A joint project with Sonal Gaud.

The Observability Gambit asks one question: can OpenTelemetry traces predict when an LLM blunders? It is a joint project by me and Sonal Gaud.

An LLM agent plays chess against Stockfish. Every move the agent makes is a trace, instrumented with the OpenTelemetry gen_ai.* semantic conventions. A second Stockfish grades each move at a fixed depth, which gives observability something it rarely has: an objective scoreboard. The analysis then asks whether the traces saw the blunder coming.

Who it’s for

Anyone curious about observing LLM agents, the OpenTelemetry GenAI conventions, or what telemetry can and can’t tell you about the quality of an AI’s decisions.

What it does

  • One trace per move. Each move records the agent’s decision, its model calls, tool calls, and retries, and a separate grade from the second Stockfish.
  • A vendor-neutral pipeline. An OpenTelemetry Collector sends traces, metrics, and events to Tempo, ClickHouse, and Prometheus, and Grafana ties them together.
  • A way to try it without an API key. An offline mock model lets you rehearse the whole pipeline. Real runs work with any OpenAI-compatible endpoint, a local model on Ollama, or Claude.
  • Analysis. It generates a report on whether the telemetry predicts blunders.

How it’s built

Everything is written in Go and runs locally with Docker.

Tech stack

  • Go
  • OpenTelemetry
  • OpenTelemetry Collector
  • Stockfish
  • Grafana Tempo
  • ClickHouse
  • Prometheus
  • Grafana
  • Docker

Tags

  • observability
  • opentelemetry
  • ai
  • chess
  • go

← All projects