Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • 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
      • Service map
      • Viewing and analyzing traces
      • Query language
      • Critical path analysis
      • Trace-to-log correlation
      • Archiving traces
      • 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
View in Markdown
  • 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.