Skip to main content

Distributed trace format

Bring Jaeger traces into a typed table path.

Jaeger JSON is a practical interchange format for spans, process descriptors, logs, tags, and references. loaders.gl normalizes it into the shared trace tables used by OTLP and Zipkin adapters.

loaders.gl support​

Jaeger JSON represents distributed spans with microsecond timestamps, typed tags, process descriptors, logs, and CHILD_OF or FOLLOWS_FROM references. Jaeger Query API responses wrap traces in a data array, while archive and interchange tools commonly use individual trace objects or arrays of spans with embedded process descriptors.

Detailed guide

Jaeger shape and fidelity details

The reference below covers accepted JSON shapes, Arrow projection, timestamp conversion, tags, references, and round-trip limitations.

Supported Shapes​

The loader accepts:

  • Jaeger Query API responses with data, total, limit, offset, and errors fields
  • individual {traceID, spans, processes} trace objects
  • arrays of trace objects
  • arrays of spans carrying embedded process objects
  • JSON Lines containing one supported object or array per non-empty line

Arrow Projection​

Jaeger data uses the same OtlpTrace projection as the OTLP loaders:

Jaeger conceptArrow table or field
process service name and tagsresources.attributes_json
instrumentation sourceone scopes row named jaeger
spanspans
logevents
first same-trace CHILD_OF referencespans.parent_span_id
remaining referenceslinks

Jaeger's 64-bit trace IDs are left-padded with zeroes to the 128-bit OTLP width. Existing 128-bit IDs are retained. Span IDs already have the shared 64-bit width.

Typed Jaeger tags are stored as OTLP AnyValue JSON in attributes_json. The span.kind tag also sets the OTLP span-kind enum. A truthy error tag sets OTLP error status. Original tags remain in the attribute list so they can be written back.

Time Units​

Jaeger startTime, duration, and log timestamp values are integer microseconds. The loader converts them to unsigned nanoseconds. Values must be non-negative JavaScript safe integers.

The writer converts nanoseconds back to microseconds by integer division. Sub-microsecond precision cannot be represented by Jaeger JSON and is truncated.

Fidelity​

The writer reconstructs parent references and links. Link attributes created by the loader retain the original Jaeger reference type; other OTLP links become FOLLOWS_FROM. OTLP scope metadata, trace state, dropped-item counters, status messages, and attributes that cannot be represented by Jaeger's scalar tag types are not losslessly expressible in Jaeger JSON.