New Relic · Schema

SpanBatch

A batch of spans with optional shared attributes

AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatform

Properties

Name Type Description
common object
spans array Array of individual span objects
View JSON Schema on GitHub

JSON Schema

new-relic-spanbatch-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SpanBatch",
  "title": "SpanBatch",
  "type": "object",
  "description": "A batch of spans with optional shared attributes",
  "required": [
    "spans"
  ],
  "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": {}
          }
        }
      ]
    }
  }
}