From alert to fix - handling production issues with Sourcery

Announcing the beta launch of our new on call engineer agent

Written by Tim Gilboy on

A walkthrough of an issue

Today we’re opening up Sourcery’s On Call Engineer agent to public beta!

We want to make it as easy as possible to investigate and fix any issue or bug you run into while working on a project.

To start with, Sourcery can investigate the cause of any issue flagged by Sentry, find the root cause, propose a fix, and generate the PR to handle it.

If you’re like us, then most of the time you look into Sentry issues you’re starting off a Slack alert - and we wanted to make Sourcery work as well as possible for that workflow:

Sentry + Slack + Sourcery

You can add Sourcery’s On Call Engineer into any Slack channels where you get Sentry alerts.

As soon as you get an alert from Sentry about an issue, Sourcery will go to work investigating the issue, seeing if it’s a false positive, a transient issue, or something that needs to be dealt with, identifying potential commits that could be responsible for the error, and then deep diving into the stack trace and what actually happened when the issue occurred.

You’ll get all of this information as a direct reply to the Sentry alert in Slack and in your Sourcery dashboard.

Sourcery responding to a Sentry alert in Slack

Based on its investigation, Sourcery will provide you with a hypothesis about the likely root cause of the issue and a suggestion on how to fix the issue. If the fix involves a code change you can also request a PR from Sourcery to implement the fix directly in the Slack thread.

Sourcery proposing a hypothesis in Slack

In the issue’s details page in Sourcery’s dashboard you can see additional potential hypothesis or alternative approaches Sourcery suggests to fix an issue in case you want to take a different route to solve an issue.

Trying out Sourcery’s On Call Engineer Agent

Starting today, we’ve extended our on call engineer to be in a public beta and anyone using Sentry + Sourcery can sign up.

To get started:

  1. Go to the Production Issues section of your Sourcery dashboard.
  2. Connect your Sentry account and link your Sentry projects and GitHub repos
  3. Add Sourcery to your Slack channels
  4. Check out Sourcery’s investigation the next time you get an alert from Sentry.