Integrating Rollbar with Source Control

Rollbar can be integrated with your GitHub, Bitbucket, or GitLab repository. When Rollbar is connected to your source control system, new debugging features are unlocked.

View source from stack traces

When a Rollbar project is connected to a git repository, stack traces will include links to each file in the code version where the error was most recently activated.

Linking from stack trace to source code

View commits in each deploy

When a Rollbar project is connected to a git repository, the list of commits included in each deploy will include URLs so you can view the diff for each commit as well as the entire deployed code version.

Deploy with links to commits

View undeployed commits

When a Rollbar project is connected to a git repository, any commit that has been merged to your master branch but not yet deployed will be highlighted at the top of the Deploys screen.

Undeployed commits

Resolve via commits

By adding an appropriately formatted message when committing a code change, you can tell Rollbar to automatically mark an item as resolved as soon as the commit is deployed to production.

$ git commit -m 'resolves rb#12345'

To learn more, check out Resolving Items via commit

Setup Instructions

To connect a Rollbar project to your git repository, just follow the steps on one of the following pages.