一键导入
tonic-observability
// Use Tonic's local observability harness for debugging compiler/runtime failures, native gates, parity, benchmark, and memory workflows. Helps decide when to enable telemetry and how to inspect bundles.
// Use Tonic's local observability harness for debugging compiler/runtime failures, native gates, parity, benchmark, and memory workflows. Helps decide when to enable telemetry and how to inspect bundles.
| name | tonic-observability |
| description | Use Tonic's local observability harness for debugging compiler/runtime failures, native gates, parity, benchmark, and memory workflows. Helps decide when to enable telemetry and how to inspect bundles. |
Use this skill when working on Tonic tasks where phase timing, error classification, emitted artifacts, or script-level correlation would help.
tonic check, tonic run, or tonic compile failures where phase boundaries matterKeep observability off for trivial formatting-only edits, quick read-only inspection, or tiny changes where normal stdout/stderr is already enough. Turn it on once diagnosis starts taking guesses.
Phase 1 is local-first and file-first. No extra services are required.
TONIC_OBS_ENABLE=1 cargo run --bin tonic -- check path/to/file.tn
Optional overrides:
TONIC_OBS_DIR=/tmp/tonic-obsTONIC_OBS_TASK_ID=<task-id> to correlate related runsTONIC_OBS_RUN_ID=<run-id> or TONIC_OBS_PARENT_RUN_ID=<run-id> when a wrapper already manages identitiesTONIC_OBS_ENABLE=1 ./scripts/native-gates.sh
Top-level scripts create a root run plus child step runs under the same task.
Default root: .tonic/observability/
Important files:
latest.json — pointer to the most recent run summaryruns/<run-id>/summary.json — primary contract: command, status, phases, artifacts, normalized errorruns/<run-id>/events.jsonl — append-only event streamruns/<run-id>/artifacts.json — emitted artifact manifesttasks/<task-id>/runs.jsonl — compact index for correlated multi-run workflowslatest.json to find the last summary quickly.summary.json first.
status, exit_codephases[]error.kind, error.phase, error.sourceartifacts.emitted[]tasks/<task-id>/runs.jsonl to find child runs.events.jsonl when you need step-by-step timing or script step boundaries.TONIC_PROFILE_*, TONIC_DEBUG_*, and TONIC_MEMORY_* still work and are reflected in the run summary.Phase 2 is optional future work: OTLP export and a disposable local UI stack. Do not assume it exists. Start with the local bundle every time.
For fuller operator-facing details, read docs/observability.md.