Skip to main content

Traces module · loader API

ZipkinTraceLoader

Read Zipkin v2 JSON and JSON Lines into the shared five-table OTLP Arrow projection for common trace analysis.

What it returns

Use Zipkin input with the shared trace model.

The loader accepts complete JSON or line-oriented input and produces the same relational Arrow tables used by OTLP and Jaeger adapters.

Input

Zipkin v2 JSON or JSON Lines

Output

The five-table OtlpTrace projection

Streaming

Incremental JSON Lines parsing

Fidelity

Large identifiers preserved safely

Detailed guide

ZipkinTraceLoader reference

The sections below document usage, parser access, options, JSON Lines behavior, and validation.

ZipkinTraceLoader reads Zipkin v2 JSON and JSON Lines into the five-table OtlpTrace Arrow projection.

import {load} from '@loaders.gl/core';
import {ZipkinTraceLoader} from '@loaders.gl/traces/zipkin';

const trace = await load('trace.zipkin.json', ZipkinTraceLoader);
console.log(trace.spans);
console.log(trace.events);

The package-root loader is metadata-only. The parser-bearing loader is available from:

import {ZipkinTraceLoaderWithParser} from '@loaders.gl/traces/zipkin';

Options​

OptionTypeDefaultDescription
zipkinTrace.batchSizenumber4096Maximum rows in each tagged Arrow record batch.

JSON Lines documents emit incrementally through parseInBatches. Pretty or multi-line JSON falls back to complete-document parsing. The loader recognizes .zipkin.json and .zipkin.jsonl.

Malformed shapes, invalid hexadecimal IDs, negative values, and unsafe numeric timestamps throw parsing errors. Large integer timestamps can be supplied as strings without losing precision.