Amazon X-Ray · Schema

AWS X-Ray Trace

Schema representing an AWS X-Ray trace resource for distributed tracing.

Application PerformanceDebuggingDistributed TracingMonitoringObservability

Properties

Name Type Description
Id string The unique identifier for the request trace.
Duration number The length of time in seconds between the start and end of the trace.
LimitExceeded boolean Whether the trace exceeded the segment document size limit.
Segments array The segment documents associated with the trace.
View JSON Schema on GitHub

JSON Schema

amazon-xray-trace-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xray.amazonaws.com/schemas/trace",
  "title": "AWS X-Ray Trace",
  "description": "Schema representing an AWS X-Ray trace resource for distributed tracing.",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "The unique identifier for the request trace.",
      "pattern": "^1-[0-9a-f]{8}-[0-9a-f]{24}$"
    },
    "Duration": {
      "type": "number",
      "description": "The length of time in seconds between the start and end of the trace."
    },
    "LimitExceeded": {
      "type": "boolean",
      "description": "Whether the trace exceeded the segment document size limit."
    },
    "Segments": {
      "type": "array",
      "description": "The segment documents associated with the trace.",
      "items": {
        "$ref": "#/$defs/Segment"
      }
    }
  },
  "$defs": {
    "Segment": {
      "type": "object",
      "description": "A segment document representing a unit of work in the trace.",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The segment ID.",
          "pattern": "^[0-9a-f]{16}$"
        },
        "Document": {
          "type": "string",
          "description": "The segment document as a JSON string."
        }
      }
    },
    "SegmentDocument": {
      "type": "object",
      "description": "The parsed content of a segment document.",
      "required": [
        "name",
        "id",
        "trace_id",
        "start_time",
        "end_time"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The logical name of the service."
        },
        "id": {
          "type": "string",
          "description": "A 64-bit identifier for the segment."
        },
        "trace_id": {
          "type": "string",
          "description": "A unique identifier that connects segments for a single request."
        },
        "start_time": {
          "type": "number",
          "description": "The time the segment was created, in epoch seconds."
        },
        "end_time": {
          "type": "number",
          "description": "The time the segment was closed, in epoch seconds."
        },
        "in_progress": {
          "type": "boolean",
          "description": "Whether the segment is in progress."
        },
        "http": {
          "type": "object",
          "description": "HTTP request and response information.",
          "properties": {
            "request": {
              "type": "object",
              "properties": {
                "method": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "client_ip": {
                  "type": "string"
                }
              }
            },
            "response": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "integer"
                },
                "content_length": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "fault": {
          "type": "boolean",
          "description": "Whether the segment recorded a fault (5xx error)."
        },
        "error": {
          "type": "boolean",
          "description": "Whether the segment recorded an error (4xx error)."
        },
        "annotations": {
          "type": "object",
          "description": "Key-value pairs for filtering traces.",
          "additionalProperties": true
        },
        "metadata": {
          "type": "object",
          "description": "Object with any keys and values for storing trace data.",
          "additionalProperties": true
        },
        "subsegments": {
          "type": "array",
          "description": "Subsegments representing downstream calls.",
          "items": {
            "type": "object"
          }
        }
      }
    },
    "Tag": {
      "type": "object",
      "required": [
        "Key",
        "Value"
      ],
      "properties": {
        "Key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "Value": {
          "type": "string",
          "minLength": 0,
          "maxLength": 256
        }
      }
    }
  }
}

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/amazon-xray-trace"
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.