Webinar: Continuous Code Improvement Series | How to Improve with AI-Assisted Workflows Register Here Today!
September 17th, 2013 • By Sergei Bezborodko
TABLE OF CONTENTS
We just rolled out a new feature to help track which versions/revisions errors are resolved in. When resolving items within Rollbar, you have the option of entering a revision or version number. If one is entered, it will appear in the item’s status history to let anyone looking at the item better understand specifically when it was fixed.
This version can be combined with a new
In your rollbar-gem configuration:
Rollbar.configure do |config| # ... other configuration config.code_version = 'bdd2b9241f791fc9f134fb3244b40d452d2d7e35' end
The other notifiers have a very similar top-level code_version configuration settings. See the notifier readmes for more info.
If you resolve an item within Rollbar in a certain version and are also specifying a
code_version for your code, we will use both of these values to decide whether or not to reactivate the item.
For example, say you have a bug in version 1.0 of your app. The bug is fixed and will be deployed to users in verision 1.1, but that won’t happen for a few days. You can just resolve the Rollbar item associated with this bug now, but also specify that the resolved version is 1.1. You will no longer get reactivation notifications for this item until occurrences of this item with a
1.1 come in.
If you connect Rollbar with GitHub, this process will also work with Git SHAs. We’ll query the GitHub API to determine whether one commit is a parent of the other.
You can now also include Rollbar item tags in your GitHub commit messages to automatically resolve them in the correct revision when deploying. Just include one of the following strings in your commits for each item you want to resolve:
Where $ref is one of the following item tags:
rb#22This appears at the top left of an item page.
Then execute a deploy by hitting the deploy API endpoint. The items referenced in any of the commit messages of the deploy will be resolved using the respective revision of that commit.
You can start tracking and resolving errors in Rollbar by signing up for free.