Change lead time
Change lead time measures the time it takes for a change to go from its initial start of coding to being deployed in its target environment. Like Deploy frequency, Change lead time is a measure of speed (whereas Change failure rate and MTTR are measures of quality, or stability).
Sleuth calculates Change lead time for all your code deployments and for each configured environment. Because Sleuth tracks not just your pull requests or branches, but your actual deploys, we're able provide a highly accurate Change lead time that includes all the commits, pull requests, and issues that went into a deploy.‌
By default, the "start of the clock" for Change lead time is the time of the first code commit included in the Deploy. However, Sleuth also provides a Project-level option to start the clock at the first moment that any issue included in the Deploy is transitioned to any state within your issue tracker that you tell Sleuth to treat as an "in-progress" state. For more on issue-based CLT, refer to Starting CLT based on first issue transition below.
Consider the following example using the default CLT start definition (i.e. the moment of first commit). Let's say that you deploy every merged pull request to your staging environment. However, let's also say that you bulk up all changes made in a day in staging and deploy them together to your production environment. With this style of work you'll see smaller Change lead times for each staging deploy. However, the Change lead time for your production deploy will include all the pull requests and the extended deploy time it took for them to make it to production.
For more on how Sleuth measures Change lead time, check out Sleuth CTO, Don Brown, explaining it in detail in this SleuthTV episode!
Sleuth CTO Don Brown explains how Sleuth calculates Change lead time

Lead time breakdowns

In addition to showing the average Change lead time for all deploys in a selected period, Sleuth also provides a detailed breakdown of how much time your teams, on average, are spending:
  • Coding - the time spent from first commit (or alternatively, the time spent from the first transition of an issue to an "in-progress state) to when a pull request is opened
  • Review lag time - the time spent between a pull request being opened and the first review
  • Review time - the time spent from first review to the pull request being merged
  • Deploying - the time spent from pull request merge to deployment
In addition to the averages found on the metrics dashboards you can always see exactly where time was spent for each deploy via its detailed view.
Change lead time for a specific deploy
For a more detailed timeline, including events from issue creation to deploy verification, you can always consult the timeline for each deploy.
On Sleuth dashboards the change lead time and breakdowns are the averages for each deploy across the period.
On the deploy view the change lead time and breakdowns are the averages for each pull request that was deployed.
You can view the individual change lead time and breakdowns for an individual pull request by viewing thePRstab on the deploy view.

Feature flags and Change lead time

Sleuth supports feature flags as a first class form of change. That said, feature flags are an instantaneous change to your running deployments. Therefore feature flags don't have a lead time or breakdown. Sleuth excludes feature flag changes from the lead time graph and associated deploy list.

Setting up Change lead time

Sleuth uses our code integrations (Github, Bitbucket, Gitlab, etc) coupled with our deployment tracking and, if you've elected to use the issue-based CLT start definition, our issue tracker integrations to build a complete picture of your team's lead time. Once you've connected your code to Sleuth and setup your first Code Deployment Sleuth automatically tracks your change lead time for each deploy.
See Interpreting metrics in Sleuth for additional information on how to interpret Sleuth's presentation of Change lead time and the other DORA metrics

Starting CLT based on first issue transition

By default, Sleuth starts the CLT clock at the moment of first code commit. However, Sleuth also provide the option on a project-by-project basis to start the CLT clock at the first transition of any included issues to any states that you define to be "in progress" in your issue tracker.
To enable this option, perform the following steps:
  • Prerequisite: before enabling issue-based CLT for a Project, you must first ensure that that Project has an Issue Tracker integration enabled and configured. See Issue tracker integrations for details
  • From the left-hand-navigation, select the Project for which you want to enable issue-based CLT start definition.
  • Expand the More drawer and select Project Settings
  • Scroll down and expand the Advanced Settings section
  • Under the Change lead time settings heading, change Start definition to First issue transition to state
  • Use the Project selection drop-down to select the desired issue workflow from your issue tracker.
    • NOTE: The purpose of this selection is to tell Sleuth which workflow state model to present in the next field. In Jira, issue workflows are tied to Jira Projects (hence the name of this field), but in other issue trackers, issue workflows might be tied to other entities (i.e. in Linear, workflows are defined for Teams, and so those are what you'll see in this drop-down if you're using Linear)
  • In the Issue states drop-down, select all states that should be counted as "in progress" staets with regard to your CLT definition. It's important that you select all such states because some issue tracker workflows are more free-form than others (e.g. allowing an issue to go straight from "To Do" to "In Review"). Sleuth will look for the earliest transition into any of the states you select here (including cases where the issue is initially created in one of these states), so it's important to be exhaustive here.
  • Note that in cases where no issue start states are detected or where the first commit pre-dates the earliest issue transition, Sleuth will use that first commit as the start time for CLT.

Further Reading

For additional information on how Sleuth calculates and presents Change lead time and other DORA metrics throughout its various dashboards and views, see Interpreting metrics in Sleuth.
Copy link
On this page
Lead time breakdowns
Feature flags and Change lead time
Setting up Change lead time
Starting CLT based on first issue transition
Further Reading