# Ingest a span
$ curl -X POST https://trace.prim.sh/v1/spans \
-H "X-402-Payment: $TOKEN" \
-d '{"trace_id": "abc", "span_id": "def", "name": "spawn.create", "duration_ms": 42}'
# Query a trace
$ curl -G https://trace.prim.sh/v1/traces/abc \
-H "X-402-Payment: $TOKEN"
See exactly where a multi-primitive workflow stalls or fails.
Track how much time is spent in each primitive. Enforce SLOs per hop.
Attach costs from wallet.sh and infer.sh to spans for per-request economics.
Quickly identify the primitive responsible for failures or slowdowns.
POST /v1/spans # Ingest span
GET /v1/traces/:id # Get full trace
| Action | Cost | Notes |
|---|---|---|
| Span ingest | $0.10/1M | |
| Trace query | Free | Fair use |