Step-by-Step Traces & Cost Telemetry
Records one complete trace tree per run showing every model call, tool call, guard, latency, and cost.
When a run is slow or expensive, you are guessing which step burned time or tokens.
Every single step, guard vote, event delivery, latency, and dollar appears in one connected span tree.
What It Does (In Plain English)
Observability streams kernel spans and cost metrics to your bound telemetry driver (telemetry-jsonl locally or telemetry-otel-genai to Datadog/Grafana/Langfuse in Enterprise) while honoring workspace privacy capture ceilings (none / metadata / content).
Real-World Example
- 1You run
neusym run ./ws "Inspect item-1". - 2Observability captures the full span tree from admission to final answer.
- 3In Enterprise
self-host, spans automatically stream to your OTel Collector.
When Should You Turn It On?
Add at Level 1 (review) in virtually all workspaces (cleanly optional — unplug anytime without breaking safety).
Safety level note: Level 1 · Review — Read-only. Can inspect and answer, never changes outside systems.
How to Add It (workspace.yaml)
kits:
- "@neusym/kit-observability@0.1.0"
kitConfigs:
observability:
recordCost: trueKits It Works With
Technical Details & Configuration Options (3 settings)
| Package | @neusym/kit-observability |
|---|---|
| Provides Ports | None |
| Requires Ports | telemetry@1 |
| Optional Ports | secrets@1 |
| Publishes Events | None |
| Owned DB Collections | None |
Configuration Options (kitConfigs.observability)
| Setting | Type | Default | Description |
|---|---|---|---|
forwardEvents | boolean | true | Export every event to telemetry@1 (never for work whose capture is none). |
eventPayloads | boolean | true | Include event payloads, redacted through secrets@1 when bound (only for work whose capture is content). |
recordCost | boolean | true | Export one cost record per model call (never for work whose capture is none). |