# Aient Telemetry Span Fetcher

> Aient Telemetry Span Fetcher is a paid API for AI agents from aient.ai, paid per call via x402, $0.005000/call, status unknown (last checked 2026-09-15).

Fetches all spans for a given traceId so an agent can walk the full distributed call tree and pinpoint the failing component.

## Facts

- Endpoint: GET https://aient.ai/x402/telemetry/spans
- Price: $0.005000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aient-ai-d1cb4010
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oLos89iMfrw9tjnLcxkEt

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 aient-ai-d1cb4010
```

Example prompt: Pull all the spans for trace ID 4bf92f3577b34da6a3ce929d0e0e4736 so I can see the full call tree and figure out which service is causing the failure.

## When to prefer this

Use this endpoint when you have a specific traceId and need the full span breakdown of a distributed request — ideal for root-cause analysis, identifying which microservice failed, or understanding latency bottlenecks within a single trace. Prefer over the broader trace query endpoint when you already know the traceId and want granular span-level detail.

## Known failure modes

- Missing or invalid traceId query parameter returns a 400 error
- Unknown traceId with no matching spans may return an empty spans array
- Expired or out-of-retention traceId returns no results
- Payment not provided or insufficient USDC results in 402 Payment Required
- Rate limiting may return 429 Too Many Requests

## How this service works

Fetch all spans for a given traceId so an agent can walk the full call tree and identify the failing component.

## Output

Returns an array of span objects representing every step in the distributed call tree for the specified traceId, including span metadata, timing, attributes, and parent-child relationships that enable root-cause analysis.

## 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",
     "required": [
      "traceId"
     ],
     "properties": {
      "traceId": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "spans"
     ],
     "properties": {
      "spans": {
       "type": "array",
       "items": {
        "type": "object"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aient-ai-d1cb4010/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aient.ai](https://www.zero.xyz/host/aient.ai/llms.txt)
