Span
A Zipkin span represents an individual unit of work in a distributed trace.
Distributed TracingObservabilityOpen-SourceMicroservices
Properties
| Name |
Type |
Description |
| traceId |
string |
Unique 128-bit or 64-bit trace identifier, hex encoded |
| parentId |
string |
The parent span ID, hex encoded, absent if root span |
| id |
string |
Unique 64-bit span identifier, hex encoded |
| kind |
string |
The type of span |
| name |
string |
The logical operation this span represents |
| timestamp |
integer |
Epoch microseconds of the start of this span |
| duration |
integer |
Duration in microseconds of the critical path |
| localEndpoint |
object |
|
| remoteEndpoint |
object |
|
| annotations |
array |
Events that explain latency with a timestamp |
| tags |
object |
Key-value pairs providing additional context |
| debug |
boolean |
True if this span was sampled with debug flag |
| shared |
boolean |
True if this span ID is shared between client and server |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/zipkin/refs/heads/main/json-schema/zipkin-api-v2-span-schema.json",
"title": "Span",
"description": "A Zipkin span represents an individual unit of work in a distributed trace.",
"type": "object",
"required": ["traceId", "id"],
"properties": {
"traceId": {
"type": "string",
"description": "Unique 128-bit or 64-bit trace identifier, hex encoded",
"pattern": "^[0-9a-f]{16,32}$"
},
"parentId": {
"type": "string",
"description": "The parent span ID, hex encoded, absent if root span",
"pattern": "^[0-9a-f]{16}$"
},
"id": {
"type": "string",
"description": "Unique 64-bit span identifier, hex encoded",
"pattern": "^[0-9a-f]{16}$"
},
"kind": {
"type": "string",
"description": "The type of span",
"enum": ["CLIENT", "SERVER", "PRODUCER", "CONSUMER"]
},
"name": {
"type": "string",
"description": "The logical operation this span represents"
},
"timestamp": {
"type": "integer",
"description": "Epoch microseconds of the start of this span"
},
"duration": {
"type": "integer",
"description": "Duration in microseconds of the critical path"
},
"localEndpoint": {
"$ref": "zipkin-api-v2-endpoint-schema.json"
},
"remoteEndpoint": {
"$ref": "zipkin-api-v2-endpoint-schema.json"
},
"annotations": {
"type": "array",
"description": "Events that explain latency with a timestamp",
"items": {
"$ref": "zipkin-api-v2-annotation-schema.json"
}
},
"tags": {
"type": "object",
"description": "Key-value pairs providing additional context",
"additionalProperties": {
"type": "string"
}
},
"debug": {
"type": "boolean",
"description": "True if this span was sampled with debug flag"
},
"shared": {
"type": "boolean",
"description": "True if this span ID is shared between client and server"
}
}
}
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/zipkin-api-v2-span"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no email required.
A second provider on the same verified email joins the account you already have.