Arize Phoenix · Schema

Span

Phoenix Span schema

LLM ObservabilityAI EvaluationOpenTelemetryTracingLLMOpsAI MonitoringOpen SourcePrompt EngineeringDatasetsExperiments

Properties

Name Type Description
id string Span Global ID, distinct from the OpenTelemetry span ID
name string Name of the span operation
context object Span context containing trace_id and span_id
span_kind string Type of work that the span encapsulates
parent_id object OpenTelemetry span ID of the parent span
start_time string Start time of the span (must be timezone-aware)
end_time string End time of the span (must be timezone-aware)
status_code string Status code of the span
status_message string Status message
attributes object Span attributes
events array Span events
View JSON Schema on GitHub

JSON Schema

phoenix-span.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/phoenix/main/json-schema/phoenix-span.json",
  "title": "Span",
  "description": "Phoenix Span schema",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Span Global ID, distinct from the OpenTelemetry span ID",
      "default": ""
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Name of the span operation"
    },
    "context": {
      "$ref": "#/components/schemas/SpanContext",
      "description": "Span context containing trace_id and span_id"
    },
    "span_kind": {
      "type": "string",
      "title": "Span Kind",
      "description": "Type of work that the span encapsulates"
    },
    "parent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Id",
      "description": "OpenTelemetry span ID of the parent span"
    },
    "start_time": {
      "type": "string",
      "format": "date-time",
      "title": "Start Time",
      "description": "Start time of the span (must be timezone-aware)"
    },
    "end_time": {
      "type": "string",
      "format": "date-time",
      "title": "End Time",
      "description": "End time of the span (must be timezone-aware)"
    },
    "status_code": {
      "type": "string",
      "title": "Status Code",
      "description": "Status code of the span"
    },
    "status_message": {
      "type": "string",
      "title": "Status Message",
      "description": "Status message",
      "default": ""
    },
    "attributes": {
      "additionalProperties": true,
      "type": "object",
      "title": "Attributes",
      "description": "Span attributes"
    },
    "events": {
      "items": {
        "$ref": "#/components/schemas/SpanEvent"
      },
      "type": "array",
      "title": "Events",
      "description": "Span events"
    }
  },
  "type": "object",
  "required": [
    "name",
    "context",
    "span_kind",
    "start_time",
    "end_time",
    "status_code"
  ],
  "examples": [
    {
      "attributes": {
        "llm.model_name": "gpt-4",
        "llm.token_count.completion": 50,
        "llm.token_count.prompt": 100
      },
      "context": {
        "span_id": "1a2b3c4d5e6f7a8b",
        "trace_id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4"
      },
      "end_time": "2024-01-01T12:00:01Z",
      "events": [],
      "name": "llm_call",
      "span_kind": "LLM",
      "start_time": "2024-01-01T12:00:00Z",
      "status_code": "OK",
      "status_message": ""
    }
  ]
}

Work with this as data

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/phoenix-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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.