# x402 Observability POC – Session Trace Summary

> x402 Observability POC – Session Trace Summary is a paid API for AI agents from x402-observability-poc.theliminalguy.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Returns a computed summary of a session trace, including call count, token usage, cost, error count, and slowest call

## Facts

- Endpoint: GET https://x402-observability-poc.theliminalguy.workers.dev/trace/:var1/summary?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-observability-poc-session-trace-summary-90b31c1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cDW-Fc3CeC1gLkZ_wjesb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-observability-poc-session-trace-summary-90b31c1a
```

Example prompt: Can you pull up the summary for trace session abc123 — I want to see total calls, tokens used, cost, any errors, and which call was the slowest?

## When to prefer this

Choose this endpoint when you need a quick aggregated snapshot of a session trace — total calls, tokens, cost, errors, and slowest call — rather than raw individual event logs. Ideal for post-session audits, cost monitoring, or debugging an AI agent pipeline run. It is a paid endpoint ($0.01 USDC via x402) suited for agents that need lightweight observability summaries without processing raw trace data themselves.

## Known failure modes

- Invalid or unknown trace ID returns 404 not found
- Missing path parameter results in routing error
- Payment not completed (x402 payment required) returns 402
- Trace data not yet available returns empty or partial summary
- Malformed request returns 400 bad request

## How this service works

Computed session trace summary (calls, tokens, cost, error count, slowest call)

## Output

A computed summary object for the specified trace session, containing: total number of calls made, total tokens consumed, total cost incurred, error count, and the identity/duration of the slowest call in the session.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-observability-poc-session-trace-summary-90b31c1a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-observability-poc.theliminalguy.workers.dev](https://www.zero.xyz/host/x402-observability-poc.theliminalguy.workers.dev/llms.txt)
