From error to resolution with Sentry and the Atlassian stack

This post was written by Rahul Chhabria from Sentry, our marketplace partner. Find and fix errors in your code faster with the Bitbucket-Sentry integration.

Software errors are inevitable. The chaos caused by these errors isn't. At least not when you have affordable, easy-to-use software available to help control that chaos. In a previous post, I explained how you can use Sentry's error monitoring software to diagnose and fix software bugs quickly. Here's a more detailed look on how to notify Sentry of new releases with Bitbucket Pipelines and integrate with the rest of the Atlassian Stack.

Sentry supports more than 30 languages and every framework in your stack with only four lines of implementation code, making error monitoring both lean and scalable. What's more, Sentry provides the context you need to get deeper insights on errors, prioritize remediation, and follow automated escalation paths.

Why is context important? Well, when logins fail or checkout flows crash — you’ll want your team's fully focused on addressing those issues and saving those customers. And the only way to do that is with actionable data that helps your team deliver an efficient and effective customer experience. 

Bitbucket 

Integrating Bitbucket and Sentry helps you get ahead of errors in releases, watch out for errors on changed files, and view suspect commits on a given error. 

  • Pipes: With the Sentry Pipe for Bitbucket Pipelines, you'll be able to automatically manage releases and quickly surface errors associated with a given build.
  • Code Insights: The upcoming code reports integration builds on the Pipe. It scans all files changed in a given PR and deep links into Sentry so you can see errors associated with the files you're about to merge to master. 
  • Suspect Commits: Sentry gives you client, OS, user impact, and commit data out of the box. With commit data, Sentry shows the exact commit that caused a given error. Needle in the haystack — found. 

Jira Software & Trello

Unfortunately, some errors can't be fixed quickly. Sometimes for even the most straightforward issues, you need to get it on the right team's backlog.

By integrating Sentry with Jira or Sentry with Trello, devs can create a Jira issue or a Trello card right from the Sentry UI. Sentry also supports 2-way sync with Jira. Here's how it works: after you create the Jira issue in Sentry, it shows up in your Jira project. Then, any changes in Jira are instantly reflected in Sentry or vice versa, so your teams can maintain context no matter which tool they're working in. Here’s a quick 2 minute video to illustrate how this works.

Opsgenie 

And finally, when you want to escalate critical issues, Opsgenie automatically notifies the right people on your team via a predefined escalation path.

When you integrate Opsgenie with Sentry and create rules that define a critical issue, Sentry will create a new incident in Opsgenie. Opsgenie will inspect the payloads Sentry sends to figure out who exactly to notify. Sentry gives those folks access to the full error report, showing them the exact line of code that caused the critical error so they can diagnose, fix, and deploy a solution.

Bringing it all together 

Now you're flying!

When all the pieces are in place, dev teams can catch software errors before they inflict damage like lost customers or wasted resources. 

  • Sentry notifies software teams of errors in Slack
  • Your team can create tickets in Jira or cards in Trello
  • Critical errors can automatically be escalated to the right people via OpsGenie
  • Developers fix and deploy a solution from Bitbucket

And let's be honest, automating these processes beats tabbing through console errors or, worse, your customer notifying you of those errors. 

Dev teams deserve to have all the information they need to cut resolution time, free up dev cycles, and ultimately, deliver experiences that create happier customers. But don't take my word for it. Watch how the Bitbucket team uses Sentry to build Bitbucket.

Start Monitoring your Code

Find and fix errors in your code faster with the Bitbucket-Sentry integration.