Skip to content
Agentmart
Submit a tool

orch-telemetry

OpenTelemetry agent observability for orchestration: captures agent reasoning (afterAgentThought), tool use, subagents, responses.

Skill by varunkan

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/varunkan-orch-telemetry

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

OpenTelemetry agent observability for orchestration: captures agent reasoning (afterAgentThought), tool use, subagents, responses. Query traces, export OTLP. Use when debugging agent decisions or auditing a feature run.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/orch-telemetry

What's inside

Skill name
orch-telemetry
Description
OpenTelemetry agent observability for orchestration: captures agent reasoning (afterAgentThought), tool use, subagents, responses. Query traces, export OTLP. Use when debugging agent decisions or auditing a feature run.
License
MIT
Instructions
79 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# OpenTelemetry Telemetry Agent

## What is captured

| Hook event | Span name | Key attributes |
|------------|-----------|----------------|
| `afterAgentThought` | `agent.reasoning` | `agent.reasoning` (full thought text) |
| `afterAgentResponse` | `agent.response` | `agent.response` |
| `preToolUse` / `postToolUse` | `tool.<name>` | `tool.name`, `tool.input`, `tool.output` |
| `subagentStart` / `subagentStop` | `subagent.*` | subagent type, phase, feature |
| `sessionStart` / `sessionEnd` | `session.*` | session boundaries |

Traces are written to:

- `.cursor/orchestration/otel-traces.jsonl` (global)
- `.cursor/orchestration/features/<id>/otel-traces.jsonl` (per feature)

## Before orchestration run

Set session context so spans link to the feature and phase:

```bash
python3 tools/orchestration_telemetry/bin/set_session.py <feature-id> --phase 2 --new-trace
```

Orchestrator should call this at the start of each phase (or on `@orch-orchestrator start`).

## Query reasoning (complete detail)

```bash
# All reasoning spans for a feature
python3 tools/orchestration_telemetry/bin/query_traces.py -f <feature-id> --reasoning-only

# Phase 2 spec review reasoning
python3 tools/orchestration_telemetry/bin/query_traces.py -f <id> --phase 2 --event afterAgentThought

# JSON export
python3 tools/orchestration_telemetry/bin/query_traces.py -f <id> --format json --limit 200
```

## API (orchestration server)

```bash
GET http://127.0.0.1:3847/features/<id>/traces?limit=100&event=afterAgentThought
GET http://127.0.0.1:3847/features/<id>/traces?since=2026-05-17T12:00:00Z  # incremental poll
```

The **orchestration dashboard** feature detail screen polls this endpoint every 1s for live thought display.

## OTLP export (Jaeger / Grafana Tempo)

1. Install deps: `pip install -r tools/orchestration_telemetry/requirements.txt`
2. Start collector (optional Docker):

```bash
export OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318
# docker run -p 4318:4318 -v $PWD/tools/orchestration_telemetry/otel-collector-config.yaml:/etc/otelcol/config.yaml otel/opentelemetry-collector:latest
```

3. Hooks auto-export when `OTEL_EXPORTER_OTLP_ENDPOINT` is set.

## Hooks (project)

Configured in [`.cursor/hooks.json`](.cursor/hooks.json) → `.cursor/hooks/orch-otel-ingest.sh <event>`.

View live hook output: Cursor **Hooks** output channel.

## Correlation with orchestration

| Artifact | Purpose |
|----------|---------|
| `otel-traces.jsonl` | Full reasoning + tool timeline |
| `run-log.jsonl` | Raw hook payloads (legacy) |
| `judge-verdicts/` | BMAD review outcomes |
| `state.json` | Phase gates |

Use telemetry when you need **why** the agent chose an action, not just **what** it wrote.

From varunkan/adf-framework, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
May 20, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from varunkan

Cite this page

orch-telemetry skill. Agent Mart. https://agentmart.dev/skills/varunkan-orch-telemetry (last updated 2026-10-24)