Raygun And GitLab Make Deployment Easier

| 2 min. (367 words)

Raygun now integrates with GitLab – the free, self-hostable solution for storing your source code and related issues.

Here’s how Raygun and GitLab work together for faster and smoother deployments.

Raygun detects the Error

Deployment isn’t always a smooth process. During deployment, it makes life easier if you have something to allow you to fix errors before they affect users.

This is where Raygun helps. Pull detailed diagnostic information right down to the line of code.

However, when you want a deep level of context around an error, GitLab is the tool you need.

GitLab allows detailed deployment tracking

Say you made 5 commits and it’s ready to go. You run your deployment scripts, and GitLab will figure out whats changed since the last deployment – which helps you to see which errors exactly this deployment has caused.

When you commit a bug fix to the issue being raised into your source control you can create proper milestones errors and assign then to team members.

  1. You’ll need a Raygun account (free 14 day trial here)
  2.  A GitLab account (here)

Follow the steps below to get started:

1. In the Raygun dashboard, head to the ‘Integrations’ tab

2. Inside the ‘Integrations’ tab, select ‘GitLab’ in the bottom right:

3. Head to the Setup tab to start to integrate Raygun and GitLab

4. Head to your GitLab account, head to profile settings, then account tab you’ll see a token

5. Copy and paste into API token field inside Raygun

6. After you hit save changes, the setup field will appear: Choose your repository and hit save.

You’ll be up and running now!

Once an error is detected inside the ‘error groups’ tab inside Raygun, you can associate the error with an issue inside GitLab:

Any new errors that come into Raygun can be associated to an issue in GitLab or can be pushed to GitLab:

Here’s what the error looks like inside GitLab:

You can also use deployment tracking with GitLab to help figure out exactly which deploys cause issues! Jump to our documentation to learn how to set it up.

_Happy zapping! _