SkilldexAll articles

Trace skill runs without storing whole prompts

Instrument decisions and outcomes while keeping raw task material out of routine telemetry.

When a user reports that the skill stopped midway, a trace can reveal whether the delay came from routing, model work, or an external dependency. Routine telemetry can provide those answers without collecting the documents and conversation text the skill handled.

Build spans around real boundaries

Create a run span with the skill version and outcome. Add child spans for routing, retrieval, model calls, and tools. Propagate standard trace context between participating services. Capture model identity, elapsed time, usage, and normalized error types where the platform provides them.

A useful retrieval span can record a query class and number of results without exposing the query itself. A mutation span can record a redacted outcome and operation ID. Do not put secrets or personal information into trace headers or metric labels.

Separate diagnostics from review evidence

A team may occasionally need source material to investigate a disputed result. Handle that through a reviewed, scoped workflow with its own access, purpose, and retention. Keep the normal production path on an allowlist of telemetry attributes so new tools cannot automatically stream private payloads to each backend.

Use the trace to guide a specific decision

Build a short timeline that distinguishes new failure modes from existing ones. For example, a rise in usage with stable run counts may reflect extra retrieval rounds. The corresponding trace and version metadata can identify the changed component before anyone needs to inspect sensitive content.

Sources