Blog |

Accelerating Code Quality with DORA Metrics

Accelerating Code Quality with DORA Metrics
Table of Contents

What do Google’s DevOps Research and Assessment (DORA) and Rollbar have to do with each other? DORA identified four key metrics to measure DevOps performance and identified four levels of DevOps performance from Low to Elite. One way for a team to become an Elite DevOps performer is by focusing on Continuous Code Improvement.

What is DORA?

The DevOps Research and Assessment (DORA) team is a Google research group that is best known for its work on measuring and understanding DevOps practices and capabilities across the IT industry. The group produced an annual State of Devops Report (2014-2019) as well as an ROI whitepaper providing insights into DevOps transformations.

The DORA team identified four key metrics that indicate software development and delivery performance. To find out more about the findings we recommend reading a book called “Accelerate: The Science of Lean Software and Devops: Building and Scaling High Performing Technology Organizations” - co-authored by Nicole Forsgren who is a DORA team lead.

What is Continuous Code Improvement?

Continuous Code Improvement is an approach to maintaining and updating any software application that allows for faster deployments, fewer errors and quicker fixes to problems. Companies that follow this approach have a compact feedback loop to know when there's a code issue that needs to be fixed, fix it, and go back to writing and running code.

The continuous code improvement feedback loops consists of:

  • Visibility — real-time identification that there is an issue
  • Grouping — recognizing error patterns to provide trustworthy signals
  • Automated Response — proactive issue remediation through automated workflows
  • Error Resolution — contextual and metadata that enables quick code fix

What Are the Four Key Metrics DORA Identified?

These metrics are used to help a DevOps organization understand where it stands and how it can improve. The first and most important aspect is to understand where your team is today. From there, setting the path to become an Elite performer will be much easier as you have a solid baseline to work from.

What Are the Benefits of becoming an Elite Performer?

Before we start running down the path to becoming an Elite Performer, lets understand what the real benefits are of becoming one.

The DORA research highlighted these key benefits of Elite or High Performing teams.

Beginning the Journey with Continuous Code Improvement

Let's take a look at each of the four DORA metrics to understand what’s needed to start the journey to become an Elite performer and how Continuous Code Improvement and Rollbar can help.

Lead Time For Changes
Elite teams do this in less than one day. Ensuring a fast and smooth delivery pipeline is critical to reducing the lead time for any change, be it large or small. Working on smaller, manageable pieces of code allows teams to focus on features and capabilities that are important to the end users (customers).

Rollbar provides the capability to monitor errors occurring in the build pipeline as code changes progress through the testing cycle into a pre-production and ultimately a production environment. Developers get notified in real-time and can begin making fixes before the automated test suites finish. This greatly reduces the average lead time for new features versus having to wait for testing cycles to finish and only then get to review any issues.

Deployment Frequency
Elite teams deploy on-demand (multiple times per day). This deployment frequency can be implemented if you have confidence that your team will be able to identify any error or defect in real-time and quickly do something about it (rollback, feature flag toggle, etc).

The best way to do this is directly inside the application code itself. External monitoring cannot give you the real-time insight into code execution including handled and unhandled exceptions.

Implementing Rollbar’s SDK into your application allows for real-time error detection with the ability to act on any error in real-time. Rollbar notifies you of any errors occurring early in the deployment phase, so that releases can be hot fixed, paused, or rolled back easily.

Knowing that any error will be caught immediately gives teams the confidence to deploy more frequently, getting more functionality out into the hands of users.

Time to Restore Service
Elite teams do this in less than one hour. The first and most important aspect is knowing about the problem before your customers do - measured as Mean Time To Awareness (MTTA). From there, it’s about how quickly you can resolve the issue - measured as Mean Time To Resolution (MTTR).

The ability to know about any errors and the impact of an error is critical. Rollbar not only provides real-time visibility into errors, but also identifies whether it's an error that's never been seen before, a reactivated error, or one that’s minor and has been occurring for a while.

Equally as important, Rollbar provides you with all insights you need to understand the impact as well as the contextual information and metadata (stack trace, local variables, exact line of code, etc) to fix the error quickly.

The next phase is using this real-time capability and information to reduce the time to restore even further. Rollbar provides automated workflow capabilities to rollback a release (restore) or toggle a feature on or off that could be causing the specific error.

Change Failure Rate
Elite teams have a 0-15% change failure rate. A reduction in failed deployments will have a substantial impact on a team’s overall productivity. Spending less time on hotfixes and patches and more time on building great products is what everyone wants.

This requires insight into the quality of your applications code and how many new errors are introduced by version as well as errors that have reappeared. Rollbar gives you insight into each deployed version and the errors, warnings or messages that have been captured in each release. This allows development teams to track their change failure rate over time as each deployment moves into production.

Improving Your Code Quality with Rollbar

If you want to become an Elite performer you need Rollbar on your side, the Continuous Code Quality Platform, today! Contact our team and we will show you the path to becoming an Elite performer.

Related Posts

See all posts

"Rollbar allows us to go from alerting to impact analysis and resolution in a matter of minutes. Without it we would be flying blind."

Start continuously improving your code today.

Get Started Shape