Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Monium
  • Getting started
  • Overview
    • Getting started
    • Basic terms
      • Searching for traces and spans
      • Viewing and analyzing traces
      • Query language
      • Critical path analysis
      • Trace-to-log correlation
      • Trace archiving
      • Incomplete traces
    • Limitations
  • Access management
  • Pricing policy
  • Terraform reference
  • Release notes

In this article:

  • Calculation algorithm
  • Limitations
  • Viewing the critical path
  1. Traces
  2. Working with traces
  3. Critical path analysis

Critical path analysis

Written by
Yandex Cloud
Updated at March 24, 2026
  • Calculation algorithm
  • Limitations
  • Viewing the critical path

In a distributed system, a request goes through a chain of operations (spans) across different services. Tracing renders this path as a graph, where each operation adds to the total execution time.

The critical path is the span sequence that drives the total request execution time. Streamlining operations on the critical path can reduce the overall system response time.

For the critical path to be calculated correctly, the trace structure must meet the following conditions:

  • The parent span initiates its child spans.
  • The parent span waits for all child spans to finish.

If these conditions are violated, such as in asynchronous calls, the critical path may be calculated incorrectly.

On the Gantt chart, segments of the critical path are highlighted in black. When hovering over a span, you can see its duration and the total time it spent on the critical path.

Calculation algorithmCalculation algorithm

The algorithm finds the critical path by traversing the span tree from the root. At each level, the algorithm picks the last finishing child (LFC), since it is the one that completes its work last. This span is considered part of the critical path. The algorithm then recursively applies itself to the found LFC and looks for the next child span that finished earlier than the previous LFC started, but is the latest among the remaining ones.

LimitationsLimitations

The critical path is only calculated for traces with a single root span. If the trace has no root span or multiple root spans, no calculation is performed.

Viewing the critical pathViewing the critical path

  1. Navigate to Monium → Traces.
  2. Enter your query and select a trace.
  3. At the top, click Critical path.

traces-critical-path

Was the article helpful?

Previous
Query language
Next
Trace-to-log correlation
© 2026 Direct Cursus Technology L.L.C.