One OpenTelemetry plane for everything intelligence-related — inference engine → gateway → agent → agent trajectories → fine-tuning. Then the trace store stops being a viewer and starts being a substrate: it diagnoses its own failures and curates its own training data.
Built for the Agents of SigNoz hackathon (AI & Agent Observability). Testbed: one free NVIDIA H100 card, self-hosted SigNoz, everything OTel-native.
observe (agent + gateway + vLLM + GPU)
→ diagnose (rank the root-cause step, even when nothing errored)
→ curate (use that failure signal as a training-data quality gate)
→ improve (LoRA on the curated set)
→ serve it on vLLM → observe it again
Two layers ship here:
| What | Where | |
|---|---|---|
| The platform | One trace from intent to silicon — agent, gateway, vLLM phases, GPU — plus dashboards, alerts, and a trace→SFT flywheel. | agent/ gateway/ collector/ dashboards/ trajectory-export/ |
| The research | The same spans, used for failure diagnosis and observability-gated data curation. Written up as a LaTeX preprint with a measured result and an honestly-scoped open hypothesis. | research/ docs/paper/ |
📄 Read the preprint (PDF) · 🌐 Live site (Demo + Research tabs)
A narrated walkthrough — the real end-to-end trace, the root-cause verdict written back into a silent-failure trace, live vLLM telemetry, and the two research theses. Every frame is a real screenshot from the running stack.
▶ Plays on the live site · YouTube:
Three tiers. Tier A and B need no GPU, no cloud account, and no credentials — they are the ones to run. Every command below was executed on a clean bring-up before this README was written; the expected output is what it actually printed.
The synthetic fault-injection corpus is committed, so the evaluation runs straight from the repo on CPU.
pip install -r research/requirements.txt
python research/evaluate.pyExpect the paper's Table 1, including the controls that make it falsifiable:
method wrong-tool bad-argument stale-observation tool-error-cascade OVERALL
FUSED (causal+1class) 52% (80%) 75% (95%) 57% (92%) 85% (100%) 68% (92%)
baseline first-error 8% (45%) 18% (52%) 5% (38%) 100% (100%) 32% (59%)
=== Leakage check: 'first-error' baseline top-1 per mode (must be ~0 on silent modes) ===
wrong-tool 8% [SILENT] · bad-argument 18% [SILENT] · stale-observation 5% [SILENT]
tool-error-cascade 100% [has error span]
That contrast is the point: the error-based heuristic every dashboard encodes solves the one fault mode with a red span and collapses on the three silent ones. Also runnable, same conditions:
python research/cluster_fingerprint.py # 485 trajectories → 8 behavioural families, silhouette 0.727
# 2 families are 100% failure; silent faults hide in the normal ones# 0 · same deps as Tier A (the OTLP exporter is in there too)
pip install -r research/requirements.txt
# 1 · bring up SigNoz (pinned v0.129.0) + our processing collector
bash scripts/setup_signoz.sh && docker compose up -d
# 2 · open http://localhost:8080 and create the first admin account (fresh install asks once)
# 3 · replay real agent trajectories AND write the root-cause verdicts back into the same traces
python research/emit_signoz.py --n 3Expected tail:
syn-fail-0001 bad-argument -> root=step2(geo_lookup) ✓
...
emitted 15 demo traces to SigNoz; fused correct on 6/12 failures
Then in SigNoz → Traces → service agent-replay:
- open any
agent.runtrace and find thediagnosis.rcachild span — it names the culprit step and tool in attributes (diagnosis.root_step,diagnosis.root_tool,diagnosis.top3), sitting next to the spans it explains. Stored spans are immutable, so the verdict is attached as an annotation span, not written over. - traces whose tools all returned
okstill carry a verdict. That is the silent-failure case.
Verify it landed without opening the UI:
docker exec signoz-clickhouse clickhouse-client -q \
"SELECT serviceName, name, count() FROM signoz_traces.distributed_signoz_index_v3 \
WHERE timestamp > now() - INTERVAL 10 MINUTE GROUP BY serviceName, name ORDER BY 3 DESC LIMIT 5"
# agent-replay execute_tool geo_lookup 65
# agent-replay diagnosis.rca 15 ← the verdicts
# agent-replay agent.run 15Known operational gotcha, worth knowing at a demo: SigNoz's trace ingestion can silently stall — metrics keep flowing while spans stop. If
diagnosis.rcadoesn't appear, rundocker restart iobs-collector signoz-otel-collectorand the queued spans flush. We recommend a heartbeat alert on "spans ingested in last 5 min" for any production deployment.
The site itself needs nothing at all — no Docker, no Python:
bash scripts/verify_phase_7.sh # landing page acceptance → "19 passed, 0 failed"
open landing/index.html # the site, including the Research tabThis is the intent-to-silicon demo. It needs an OpenAI-compatible vLLM endpoint; our testbed reaches one free H100 card over SSH tunnels (the box is a shared production node, so we take one card and nothing else).
bash scripts/tunnel.sh & # persistent: -L for metrics/DCGM, -R for OTLP back to the Mac
bash scripts/vllm_up.sh # GPU-4 preflight, then Qwen2.5-7B
python agent/agent_app.py --demoThen open the trace in SigNoz — one trace id spanning agent → gateway → engine → GPU phases. Follow-ups:
bash scripts/demo_fallback.sh # kill vLLM A → the gateway fails over to B, visible in the trace
python trajectory-export/export.py # traces → validated Harbor ATIF v1.7 → judge filter → SFT dataset
bash scripts/verify_phase_2.sh # the centerpiece acceptance checkAny OpenAI-compatible endpoint works — point gateway/litellm-config.yaml at it and skip the tunnel.
A real end-to-end trace, verified across three services under one trace id:
agent.run (service: agent)
└ invoke_agent → chat qwen2.5-7b → POST
└ Received Proxy Server Request (service: litellm — auth, router, retries)
└ litellm_request → raw_gen_ai_request
└ llm_request (service: vllm-a — TTFT, tokens)
├ queue / prefill / decode (measured phase child spans — otel_phase_spans plugin)
└ execute_tool knowledge_lookup
└ execute_tool word_count
└ chat qwen2.5-7b (2nd turn) → … → llm_request
traceparent propagates agent → gateway → engine (httpx injects, LiteLLM forwards, vLLM continues).
Hard split, driven by the testbed: the H100 box is a shared production node, so it runs only vLLM on the
one free card (GPU 4); everything else runs on the dev Mac. See docs/architecture.md.
[agent (Mac)] ─┐
▼
[LiteLLM (Mac)] ──OTLP──► [our OTel collector (Mac)] ──► [SigNoz (Mac)]
│ (OpenAI API via -L tunnel) ▲ ▲
▼ │ └─ dcgm-exporter (H100, read-only)
[vLLM (H100 GPU4)] ──OTLP via -R tunnel────┘ ──/metrics via -L tunnel──┘
docs/paper/main.pdf — The Observability Plane as an Agent-Lifecycle Substrate:
Telemetry-Gated Training-Data Curation and Cross-Layer Serving Signals for LLM Agents, Gurunath Rajagopal.
LaTeX source in docs/paper/main.tex; rebuild with bash docs/paper/build.sh
(needs tectonic + pdftoppm). Index of the rings: research/README.md.
Ring 1 — failure diagnosis. Causal-structure RCA fused with one-class anomaly attribution, CPU-only and
LLM-judge-free, verdicts written back as diagnosis.rca annotation spans. 68% top-1 / 92% top-3 against
5–18% for an error-based baseline on silent failures, with a leakage check, an ablation, trivial baselines
and a held-out-template split. Writeup: docs/failure-diagnosis.md.
Ring 2 — observability-driven curation (the measured result). Claude-Code coding-agent sessions are
themselves agentic trajectories: we parse them into per-prompt turns and replay them as OTel agent.run span
trees into SigNoz — 1,344 real turns, weak-labelled task.struggled from tool errors, interruptions, and
whether the next prompt is a correction. Pull them back out of ClickHouse, gate on that signal, and LoRA-tune
against a size-matched random control so any gap is data quality, not quantity. Result: held-out
perplexity 6.067 vs 6.113, with complete seed separation (every clean-trained seed beats every
mixed-trained seed across 6 runs). The magnitude is modest — 0.5B model, heuristic label, truncated span
content — and the paper says so rather than rounding it up.
Ring 3 — cross-layer serving signals (an open hypothesis, not a result). Agent traces link to their vLLM spans by trace id, and failed trajectories show +176% TTFT. We claim no result from that: the gap is mechanically confounded by context length (an agent re-sends its whole history, so longer runs prefill more), queue time is identically zero, and n=22. We do not collect KV-cache occupancy, prefix-cache hit rate, or eviction — those need new vLLM instrumentation. The paper states the hypothesis and the pre-registered protocol that would confirm or kill it, and marks the uninstrumented signals explicitly in the figure.
Reproduce the research numbers: Tier A above. The curation training data is not committed (private session
content); the dataset statistics and all result JSONs are (research/curation/data/meta.json,
experiment_results.json).
| Phase | What | Verify |
|---|---|---|
| 0 | SigNoz stack + standalone collector + read-only DCGM (GPU 4) | 8/8 |
| 1 | vLLM telemetry — gen_ai.* traces, 16-panel dashboard, 3 alerts |
13/13 |
| 2 | Centerpiece: agent → gateway → vLLM in ONE trace (intent to silicon) + fallback | 7/7 |
| 5 | Flywheel export — traces → validated Harbor ATIF v1.7 → SFT + quality filter | 6/6 |
| 5c | Org coding agents — Claude Code telemetry into the same SigNoz + org dashboard | 7/7 |
| 7 | Landing page — real-trace thermal-waterfall hero + Research tab | 19/19 |
| R | Research rings — diagnosis, curation, cross-layer + the preprint | see Tier A |
Pending (scaffolded / documented): Phase 3 (per-request stat-logger plugin), Phase 4 (semantic-router gateway), Phase 6 (lineage — needs a training run at scale).
docker-compose.yml our collector + LiteLLM gateway (on SigNoz's network)
versions.env pinned: vLLM 0.21.0, SigNoz v0.129.0, LiteLLM v1.93.0, otel-contrib 0.127.0
collector/config.yaml standalone processing-tier collector (DCGM gpu=4, vLLM scrape, redaction)
gateway/litellm-config.yaml OTel + traceparent forwarding + A-primary/B-fallback
agent/agent_app.py Pydantic AI agent, OTel-instrumented, tools, session/task tagging
dashboards/ alerts/ generated from verified SigNoz v0.129.0 API (Perses v6 / rules v5)
trajectory-export/ SigNoz → Harbor ATIF v1.7 → judge filter → redact → SFT dataset
finetune/train_lora.py OTel-instrumented PEFT LoRA trainer (training.run_id lineage)
research/ the three rings — diagnosis, sessions→traces→curation, cross-layer probe
docs/paper/ the LaTeX preprint (main.tex → main.pdf) + build.sh
landing/ static site; hero = real E2E trace; #demo = the video; #research = the paper
scripts/ setup, tunnel, vllm_up, loadgen, verify_phase_*.sh, capture_hero
docs/ architecture, telemetry-reference, signoz-api-guide, demo-script, limitations
See plan.md for the full vision, docs/demo-script.md for the walkthrough,
and docs/limitations.md for what we deliberately did not claim.
-
Track: AI & Agent Observability.
-
Deep SigNoz + OpenTelemetry usage: traces (E2E agent→gateway→vLLM→GPU phases), metrics (vLLM + DCGM), a quality metric, dashboards, and alerts — all OTel-native. Derived intelligence is written back into the trace store as annotation spans, a pattern any SigNoz user can adopt without a schema change.
-
Testable end to end: Tier A (no Docker, no GPU) and Tier B (Docker only) above, both verified on a clean bring-up. Tier C needs a GPU endpoint.
-
Reproducible install (Foundry): the repo ships both
signoz/casting.yamland the generatedsignoz/casting.yaml.lock, so judges can reproduce the SigNoz deployment:curl -fsSL https://signoz.io/foundry.sh | bash # install foundryctl (one time) foundryctl cast -f signoz/casting.yaml # deploy SigNoz (also writes casting.yaml.lock) # or, to generate the deployment files WITHOUT starting anything: foundryctl forge -f signoz/casting.yaml
Verified with
foundryctl gauge/forge— the generatedpours/deployment/compose.yamlpassesdocker compose config(valid, deployable: postgres, clickhouse 25.12.5, clickhouse-keeper, signoz, ingester). The lock pins every component version. The tested dev/demo path is the pinned plain-compose (scripts/setup_signoz.sh, SigNoz v0.129.0) so the stack is also reproducible offline; the two are equivalent Docker-Compose SigNoz deployments. (If you already ran the plain-compose stack, stop it beforefoundryctl cast— they bind the same ports.) -
AI-assistance declared: see
AI_DISCLOSURE.md. -
Landing page deploys to GitHub Pages via
.github/workflows/deploy-pages.yml.
