Distributed Trace Explorer

Paste an OTLP, Jaeger or Zipkin trace: span tree, critical path, self-time, N+1 calls and errors.

OTLP/JSON export (e.g. from the OpenTelemetry Collector file exporter), Jaeger UI "Download JSON" / API /api/traces/{id}, or a Zipkin v2 span array.

Read in memory as UTF-8 text and not stored. Max 5 MiB.

When you run the tool, this file is uploaded to our server, processed and then deleted. The files the tool creates stay on our server for about 2 hours: download them to keep them, or save them to your Google Drive.

More options

If the payload contains several traces; default is the trace with the most spans.

Minimum number of same-named sibling spans to report as N+1 / fan-out.

Try an example: ·

More about this tool

Part of Opsdeck Developer & cloud explorers

How it works

Paste a trace exported as OTLP JSON (resourceSpans), Jaeger JSON (data[].spans) or Zipkin v2 JSON. The explorer rebuilds the span tree, computes self-time (excluding overlapping child spans), the critical path that determines end-to-end latency, the slowest services, error spans, and detects N+1 queries and fan-out (many sibling spans with the same name), with a service call graph and a waterfall.

  • Formats: OTLP/JSON (resource service.name, startTimeUnixNano/endTimeUnixNano, status.code 2 = ERROR), Jaeger JSON (µs startTime/duration, CHILD_OF references, error=true tag) and Zipkin v2 (µs timestamp/duration, "error" tag; shared client/server spans are split so the server span becomes the client span's child).
  • Self-time = span duration minus the union of its children's intervals (clipped to the span), so concurrent children are not double-counted.
  • Critical path: from the longest root span, repeatedly take the child that finishes last before the current cursor, recurse into it, and move the cursor to its start; time not covered by a critical child is the span's own critical time.
  • Repeated siblings: children of one parent with the same service + normalised name/statement (ids and literals masked) at or above the threshold. If their summed duration ≈ wall time they ran sequentially (N+1); if wall time ≤ 40% of the sum they ran in parallel (fan-out).
  • Root-cause errors are error spans none of whose descendants also errored.

Use this tool in an app

These free programs for your browser have this tool built in, next to everything else the task needs.

  • Opsdeck Developer & ops workbench

    One deck for CI failures, cron, traces, k8s events, API diffs, query plans and Terraform.

    Open Opsdeck

Related tools

  • Query Plan Visualizer – PostgreSQL EXPLAIN (ANALYZE) or MySQL EXPLAIN JSON → plan tree, hot nodes and index suggestions.
  • Kubernetes Event Explorer – Paste kubectl events and get a timeline, reason taxonomy and likely root causes per workload.

How to use the Distributed Trace Explorer

Paste an OTLP, Jaeger or Zipkin trace and find the critical path, where the time really goes, root-cause errors and N+1 queries.

What it is for

A trace waterfall shows everything that happened in a request. That is the problem: with 17 spans, three services and parallel calls, the bar that looks longest isn't necessarily the one that made the user wait. Error flags on parent spans hide which call actually failed. A loop of tiny database queries looks harmless one span at a time.

Paste a trace exported as OTLP JSON (resourceSpans), Jaeger JSON (data[].spans) or Zipkin v2 JSON. The tool rebuilds the span tree and works out the following:

  • Self-time per span and service, without double-counting overlapping children
  • The critical path that determines end-to-end latency
  • Root-cause error spans
  • Repeated sibling spans, classified as sequential N+1 or parallel fan-out

You also get a service call graph and a waterfall.

It analyses one trace at a time. A single trace can be an outlier, so confirm patterns against your tracing backend's aggregates before you redesign anything.

Worked example

The first built-in example is an OTLP trace of GET /account/orders across frontend, orders-api and reco.

OTLP trace of 17 spans across 3 services took 182 ms; most self-time in reco (53.7%), 3 error spans, 1 repeated-call pattern (top: 8× SELECT shop.order_items).

What the numbers say:

  • Critical path: GET /account/orders → GET recommendations → POST /recommend → GET feature-store (154 ms of critical time). The orders call (114 ms) ran in parallel and finished earlier, so speeding it up wouldn't make the page faster.
  • Errors: three spans are marked as errors, but only reco: GET feature-store ("deadline exceeded") is the root cause. The other two ("feature store timeout", "upstream timeout after 150ms") are just reporting that failure further up the chain.
  • N+1: under orders-api: load order items, 8 SELECT shop.order_items spans took 64 ms in total and 64 ms wall time. They ran one after another, a classic N+1, best replaced by one query with WHERE id IN (…) or eager loading.

So there are two separate fixes. The feature-store timeout sets the latency, and the N+1 wastes 64 ms that is off the critical path today but will matter once reco is fixed.

The Zipkin example shows a gateway calling inventory (240 ms) and then audit, which returned a 503. That error is a root cause and sits on the critical path with 110 ms.

How to read the result

  • Services — spans, errors, self-time and its share, and critical-path time per service. criticalMs is the column to sort by. A service with lots of self-time but 0 critical ms (orders-api here) isn't what makes the user wait.
  • Critical path — the chain of spans that determines total duration, each with the time it alone contributed.
  • Errors — isRootCause: true marks error spans with no erroring descendants. Start there.
  • Repeats — parent, count, total vs wall time and the pattern. If the sum ≈ wall time, the calls ran sequentially (N+1). If wall time ≤ 40% of the sum, they ran in parallel (fan-out).
  • orphanSpans — spans whose parent is missing from the export, usually a sign of broken context propagation.

Tips and common mistakes

  • Export the whole trace. Missing spans from one service turn its time into unexplained self-time of the caller.
  • Self-time on a CLIENT span is network plus queueing plus the uninstrumented server. Instrument the callee before blaming the network.
  • Lower "Flag repeated sibling spans from" (default 5) to catch smaller loops in short traces, as the Zipkin example does with 3.
  • Zipkin shared client/server spans are split automatically. You'll see a ~server suffix on the server half.
  • If the payload has several traces, the one with the most spans is analysed unless you enter a trace id.

FAQ

What's the difference between duration and self-time?

Duration is the span from start to end. Self-time subtracts the time covered by its children (counting overlapping children once), so it's the work done in that span itself.

Why isn't the longest span on the critical path?

Parallel work only matters if it finishes last. A long span that completes while another branch is still running doesn't delay the response.

Which exports are supported?

OTLP/JSON (e.g. from the OpenTelemetry Collector file exporter), Jaeger UI "Download JSON" or /api/traces/{id}, and Zipkin v2 span arrays. Files are limited to 5 MiB.

Is the uploaded trace stored?

No. The file is read into memory as text and is not stored.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://distributedtraceexplorer.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://distributedtraceexplorer.usefulweb.site/mcp · tool name distributed_trace_explorer
Example request
curl -s -X POST https://distributedtraceexplorer.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{…see OpenAPI examples…}'
Feedback · ideas & bug reports welcome