# Span

A distributed tracing span.

**Type**: `object`

## Properties

- name: attributes (optional)
  type: `Variant`

- name: droppedAttributesCount (optional)
  type: integer
  description: Number of attributes that were dropped due to limits.

- name: droppedEventsCount (optional)
  type: integer
  description: Number of events that were dropped due to limits.

- name: droppedLinksCount (optional)
  type: integer
  description: Number of links that were dropped due to limits.

- name: durationNanos (optional)
  type: integer
  description: Calculated duration in nanoseconds.

- name: endTimeNanos (optional)
  type: integer
  description: End timestamp in nanoseconds since epoch.

- name: events (optional)
  type: array of `SpanEvent`
  description: List of events associated with this span.

- name: flags (optional)
  type: integer
  description: Span flags as defined in W3C Trace Context specification.

- name: links (optional)
  type: array of `SpanLink`
  description: List of links to other spans.

- name: operationName (optional)
  type: string
  description: Human-readable span name describing the operation.

- name: parentSpanId (optional)
  type: string
  description: 64-bit parent span identifier as a 16-character hex string; null for root spans.

- name: root (optional)
  type: boolean
  description: True if this is a root span (no parent).

- name: spanId (optional)
  type: string
  description: 64-bit span identifier as a 16-character hex string.

- name: spanKind (optional)
  type: enum: `UNSPECIFIED`, `INTERNAL`, `SERVER`, `CLIENT`, `PRODUCER`, `CONSUMER`
  description: The type of span

- name: startTimeNanos (optional)
  type: integer
  description: Start timestamp in nanoseconds since epoch.

- name: status (optional)
  type: `Status`

- name: traceId (optional)
  type: string
  description: 128-bit trace identifier as a 32-character hex string.

- name: traceState (optional)
  type: string
  description: Trace state information in W3C format.
