{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/new-relic/refs/heads/main/json-schema/trace-api-span-batch-schema.json", "title": "SpanBatch", "description": "A batch of spans with optional shared attributes", "type": "object", "properties": { "common": { "$ref": "#/components/schemas/CommonBlock" }, "spans": { "type": "array", "description": "Array of individual span objects", "items": { "$ref": "#/components/schemas/Span" }, "example": [ { "id": "500123", "trace.id": "500123", "timestamp": 1718153645993, "attributes": { "name": {}, "parent.id": {}, "duration.ms": {}, "service.name": {}, "error": {}, "db.statement": {}, "http.url": {}, "http.method": {}, "http.statusCode": {} } } ] } }, "required": [ "spans" ] }