2dbi
Home/Dynatrace/Practical: Parse and Correlate Distributed Traces
DDynatrace·DSAEngineerOnsite – Coding (Practical)

Practical: Parse and Correlate Distributed Traces

Problem

Given span records (trace_id, span_id, parent_id, duration), reconstruct each trace tree and find the critical path.

Example

spans -> per-trace tree; longest-duration root-to-leaf path

Constraints

  • Spans may arrive out of order

What Dynatrace looks for

Observability-relevant coding: build the tree from parent pointers, compute the critical path.

added 6 days ago
LeadersAccount