Feature release: Link back to source from GitHub, Bitbucket and GitLab

Freyja SpavenAnnouncements, Provider Updates1 Comment

feature release: Link back to source

Raygun Crash Reporting gives you the deep diagnostic details you need in to fix an error quickly and efficiently. When an error is thrown by your application, the error details arrive in your dashboard under the ‘Summary’ tab where you can find the stacktrace details for a fast fix.

Having this information available is really important for efficient error management, however, some of our customers need better access to the stacktrace information for a faster fix. For example, you may find moving between your repository and your stacktrace information tedious and messy, especially when dealing with lots of files and having to copy and paste the path.

Raygun Crash Reporting has made this easier by creating a link back to source for GitHub, Bitbucket and GitLab to make error resolution easier and faster. An extra bonus is that if you also have deployment tracking set up in Raygun Crash Reporting these links back to the source will also point to the correct revision of the code in your hosting service.

Before we get started, it’s important to ensure that your Raygun Crash Reporting application is integrated with your web-based hosting service for source code. If not, here are the detailed instructions:

When you have integrated your source code service, you’ll be able to see the link back to source inside the Raygun Crash Reporting stacktrace information. Here’s where to find the link for GitHub, Bitbucket and GitLab:

Link back to source: GitHub

Inside your Raygun Crash Reporting ‘Summary’ tab, you can see the stacktrace information:

the Raygun summary tab clearly shows the stacktrace information

If you have the GitHub integration enabled, you will see the GitHub icon to the left of the stacktrace:

the logo provides the link back to source

Click on the GitHub icon (which acts as the link back to source.) A new browser tab will open in GitHub which clearly highlights the line of code for that particular stacktrace frame. In this example, you can see the error has occurred on line 15:

Github clearly highlights the line of code the error occurred on

From identifying the error, it’s easy to go ahead with your usual debugging process.

Link back to source: Bitbucket

Inside your Raygun Crash Reporting ‘Summary’ tab, you can see the stacktrace information:

You can clearly see the stacktrace information and the link back to source

If you have the Bitbucket integration correctly enabled, you will see the Bitbucket icon to the left of the stacktrace:

link back to source - icons to the left of the stacktace

Click on the icon (which acts as the link back to source) to open a new browser tab in Bitbucket. Bitbucket will clearly highlight the line of code for that particular stacktrace frame in the new browser tab. In this example, the error has occurred on line 37:

 link back to source : highlighted stacktrace

From identifying the error, simply go ahead with your usual debugging process.

Link back to source: GitLab

Inside your Raygun Crash Reporting ‘Summary’ tab, you can see the stacktrace information:

If you have the GitLab integration correctly enabled, you will see the GitLab icon to the left of the stacktrace:

The GitLab icons appear along the left side of the stacktrace lines.

Click on the icon (which acts as the link back to source) to open a new browser tab in GitLab. GitLab will clearly highlight the line of code for that particular stacktrace frame in the new browser tab. In this example, the error has occurred on line 37:

 The referenced stacktrace line is clearly displayed in GitLab

From identifying the error, simply go ahead with your usual debugging process.

Whether you use GitHub, Bitbucket or GitLab as your hosting service, getting the information you need for a fast fix is even easier. With GitHub, GitLab and Bitbucket links back to source, opening the frame information in separate browser tabs allows for faster movement between the high level overview and stacktrace information. No need to get lost when resolving errors – the source code is now integrated to your stacktraces.

Do you need help setting up link back to source? Get in touch with a friendly team member here. We’d be happy to help.

 

Next level software intelligence across your entire stack.

One Comment on “Feature release: Link back to source from GitHub, Bitbucket and GitLab”

  1. Pingback: Welcome to Raygun: An easy navigation guide for first time users

Leave a Reply

Your email address will not be published. Required fields are marked *