01What is OTLP Trace Viewer?
OTLP Trace Viewer draws a span waterfall from trace data in the OTLP/JSON format, the JSON body an OpenTelemetry exporter sends to /v1/traces. You often end up holding this JSON with nothing good to look at it with: a Collector file exporter dump, a debug exporter log, or a captured request from a test. Reading nested resourceSpans by eye gets old fast. Paste an object with a resourceSpans array and the tool does the walking for you. It goes through each resource, its scopeSpans and their spans, and takes the service name from the service.name resource attribute. A resource without one shows as unknown_service. Spans are nested under their parent using parentSpanId, sorted by start time, and placed on a shared timeline that starts at the earliest span. Bars are coloured by service. The parser follows the OTLP JSON encoding rules. Trace and span IDs are read as hex strings, and the nanosecond timestamps are read as decimal strings or numbers. They are parsed as BigInt, so string timestamps keep full precision. Span kind and status code are integers in the spec, so 2 for kind means SERVER and 2 for status means ERROR. Enum names such as SPAN_KIND_SERVER or STATUS_CODE_OK are also accepted. Attribute values can be strings, booleans, ints, doubles, bytes, arrays or key-value lists, and nested ones are printed inline. Spans with status ERROR get a red outline and a red name. Span events appear as ticks on the bar. Click a span to see its kind, status message, IDs and attributes. Here is what the built-in checkout example gives you. GET /checkout on frontend is a SERVER span of 420 ms with status ERROR. Under it, POST payments is a CLIENT span starting at +20 ms, running 380 ms, with the message "upstream timeout" and a retry event at 200 ms. Under that, charge card on the payments service starts at +30 ms and runs 360 ms with status UNSET. One glance shows the client call ate almost the whole request. The tool also checks the data. It warns about span IDs that are not 16 hex characters and skips spans without valid start and end timestamps. Spans whose parent is not in the data are listed at the top level with a warning, which usually means a partial export. Limits: it does not read the binary protobuf encoding, Jaeger or Zipkin JSON, and it does not show span links. Newline-delimited files need one line at a time. Your data stays in the browser.
Backend and platform engineers who instrument services with OpenTelemetry and want to look at raw trace output. The tool runs entirely in your browser, so your data never leaves your device.
02How to use OTLP Trace Viewer
- Export spans as OTLP/JSON
- Paste the JSON, which starts with a resourceSpans array, into the text box
- Read the waterfall; indentation shows parent and child spans
- Click a span to see its attributes, events, IDs and status
- Fix anything listed in the yellow warnings box
03Worked examples
- Input:
Built-in example "Checkout with an error": frontend GET /checkout (kind 2, status 2) with child POST payments (kind 3, status 2, message "upstream timeout", retry event), and payments charge card under it - Result:
frontend GET /checkout SERVER +0ms 420ms ERROR frontend POST payments CLIENT +20ms 380ms ERROR (upstream timeout) events: retry@200ms payments charge card SERVER +30ms 360ms UNSET total 420ms, 1 trace, services frontend, payments - Attributes left out of this summary for space.
- Input:
Built-in example "Queue producer and consumer": orders place order (kind 1), orders publish (kind 4, status 1), shipping orders process (kind 5) - Result:
orders place order INTERNAL +0ms 50ms UNSET orders orders publish PRODUCER +10ms 5ms OK shipping orders process CONSUMER +80ms 80ms UNSET total 160ms - The consumer starts 65 ms after the publish ends, which is the time the message sat in the queue.
- Input:
Built-in example "Missing parent and bad IDs": reserve stock with parentSpanId 9999999999999999, a child with spanId "abc", and a span with no endTimeUnixNano - Result:
Span "SELECT stock" has spanId "abc", expected 16 hex characters. Span "never ended" is missing a valid startTimeUnixNano or endTimeUnixNano; skipped. 1 span(s) reference a parent that is not in this data; shown at top level. - The two valid spans still render: reserve stock at the top, SELECT stock nested under it.
- Input:
Built-in example "Enum names and nested attributes": kind "SPAN_KIND_SERVER", status "STATUS_CODE_OK", an arrayValue and a kvlistValue attribute - Result:
search-api GET /search SERVER +0ms 85ms OK attrs: search.filters=[lang:go, stars:>100]; client={name: web, beta: true} search-api query index INTERNAL +5ms 65ms UNSET attrs: hits=42; score.max=0.93 - Input:
{"spans": []} - Result:
Expected an object with a "resourceSpans" array (OTLP ExportTraceServiceRequest). - The top-level object must be an export request, not a bare span list.
04Common use cases
- Looking at a trace captured from an OpenTelemetry Collector file or debug exporter
- Checking the spans your instrumentation emits before you set up a tracing backend
- Finding which downstream call made a request slow
- Seeing which span set status ERROR and what message it carried
- Checking that a producer span and its consumer span link up across two services
- Spotting spans with malformed IDs or missing end times from a custom exporter
- Sharing a trace in a bug report without giving access to your observability tool
05Tips
- Keep timestamps as strings; JSON numbers above 2^53 lose precision before any tool sees them
- A span whose parent is missing usually means part of the trace came from another export or was dropped
- Status UNSET is normal for successful spans; only ERROR marks a failure
- If your file holds one JSON object per line, paste one line at a time
- Set service.name on every resource, or all its spans land under unknown_service
06Related concepts
OpenTelemetry, OTLP, distributed tracing, span, trace waterfall, resourceSpans.
Frequently Asked Questions
What is OTLP Trace Viewer?
OTLP Trace Viewer is a free, browser-based developer tool on AIDToolStack. Paste OpenTelemetry OTLP/JSON trace data and get a span waterfall with service names, durations, error status, events and attributes. Runs in your browser. It requires no installation or sign-up and works entirely in your browser.
Is OTLP Trace Viewer free to use?
Yes. No sign-up, no fees and no usage cap.
Does OTLP Trace Viewer store my data?
No. It runs in your browser; nothing is uploaded.