{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/trackmcp/main/json-schema/trackmcp-post-api-v1-otel-v1-traces-request-schema.json",
  "title": "PostApiV1OtelV1TracesRequest",
  "x-generated": "2026-10-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/trackmcp-openapi-generated.yml#/components/schemas/PostApiV1OtelV1TracesRequest",
  "type": "object",
  "properties": {
    "resourceSpans": {
      "type": "array",
      "description": "Array of resource span objects"
    },
    "resource": {
      "type": "object",
      "description": "Resource attributes (e.g., service.name, deployment.environment.name)"
    },
    "scopeSpans": {
      "type": "array",
      "description": "Array of scope span objects containing spans"
    },
    "spans": {
      "type": "array",
      "description": "Array of span objects"
    },
    "name": {
      "type": "string",
      "description": "Span name (e.g., tools/call)"
    },
    "startTimeUnixNano": {
      "type": "string",
      "description": "Start time in Unix nanoseconds"
    },
    "endTimeUnixNano": {
      "type": "string",
      "description": "End time in Unix nanoseconds"
    },
    "attributes": {
      "type": "array",
      "description": "Span attributes such as mcp.method.name, gen_ai.tool.name, mcp.transport"
    }
  },
  "required": [
    "resourceSpans",
    "resource",
    "scopeSpans",
    "spans",
    "name",
    "startTimeUnixNano",
    "endTimeUnixNano",
    "attributes"
  ]
}