Plane docs
ApiSchemas

Span

One shape from the contract, as it appears on the wire.

Used by traces.forSession

Referenced from SessionTrace

JSON Schema

{
  "type": "object",
  "properties": {
    "traceId": {
      "$ref": "#/components/schemas/TraceId"
    },
    "spanId": {
      "$ref": "#/components/schemas/SpanId"
    },
    "parentSpanId": {
      "$ref": "#/components/schemas/SpanId"
    },
    "sessionId": {
      "$ref": "#/components/schemas/SessionId"
    },
    "name": {
      "type": "string",
      "minLength": 1
    },
    "kind": {
      "$ref": "#/components/schemas/SpanKind"
    },
    "startMicros": {
      "type": "integer",
      "minimum": 0
    },
    "endMicros": {
      "type": "integer",
      "minimum": 0
    },
    "status": {
      "$ref": "#/components/schemas/SpanStatus"
    },
    "statusMessage": {
      "type": "string"
    },
    "attributes": {
      "$ref": "#/components/schemas/SpanAttributes"
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SpanEvent"
      }
    }
  },
  "required": [
    "traceId",
    "spanId",
    "sessionId",
    "name",
    "kind",
    "startMicros",
    "endMicros",
    "status",
    "attributes",
    "events"
  ],
  "additionalProperties": false
}

On this page