Skip to main content

Distributed trace format

Use Zipkin JSON at the edge, then analyze it like OTLP.

Zipkin v2 is compact and widely deployed. loaders.gl maps its spans, endpoints, annotations, and tags into the shared five-table Arrow projection while making precision and fidelity limits explicit.

loaders.gl support​

The Zipkin path

Read spans and annotations. Put them beside the other trace dialects.

Zipkin’s smaller model is enough for many compatibility boundaries. The shared projection makes its data consumable by the same table-oriented tools without claiming lossless equivalence.

Input

Zipkin v2 span arrays, trace lists, or JSON Lines

Map

Endpoints, tags, annotations, and references

Output

Resources, scopes, spans, events, and links tables

Fidelity

Microseconds and string tags remain explicit limits

Zipkin v2 JSON represents distributed spans with microsecond timestamps, local and remote network endpoints, string tags, and timestamped annotations. It is used by the Zipkin v2 HTTP API and by many tracing SDK exporters.

Detailed guide

Zipkin projection and fidelity details

The reference below covers accepted shapes, Arrow projection, timestamp conversion, endpoint mapping, and lossy fields.

Supported Shapes​

The loader accepts a single span, a span array such as the /api/v2/spans request and /api/v2/trace/{traceId} response, a nested list of traces, or JSON Lines containing any of these shapes.

Arrow Projection​

Zipkin uses the shared five-table OtlpTrace projection:

Zipkin conceptArrow table or field
local endpointresources.attributes_json
instrumentation sourceone scopes row named zipkin
span and parent IDspans
annotationevents
remote endpoint, tags, debug, and sharedspans.attributes_json

Zipkin's 64-bit trace IDs are left-padded to the 128-bit OTLP width. Its server, client, producer, and consumer kinds map directly to OTLP enum values. A non-empty error tag sets OTLP error status while remaining available as an attribute.

Time and Fidelity​

Zipkin timestamps and durations are integer microseconds and may be JSON numbers or unsigned integer strings. They are converted to nanoseconds in Arrow. Writing truncates sub-microsecond precision because Zipkin cannot represent it.

Zipkin tags are strings. OTLP scalar attributes are stringified when written as Zipkin tags; arrays, maps, bytes, scope metadata, links, dropped-item counters, and trace state do not have lossless Zipkin v2 equivalents.