If you use Honeybadger, you may have come across "tags" in the UI. Tags are the key that unlocks a lot of advanced functionality in Honeybadger.
For example, imagine that there are a couple of errors that you want to procrastinate on. You can tag them "later," and then tell honeybadger to stop sending you alerts on errors with that tag. Once you're ready to deal with them, enter
tag:later into the search box to retrieve them.
This manual approach doesn't scale very well though. That's why we let you add tags to errors in your Ruby code.
Suppose you have a job queue like Sidekiq, and you want to treat errors from the job queue differently than errors from your main app.
Just add the following code, and every error that happens in Sidekiq will be tagged "sidekiq."
**Note: **this requires version 2.x of the Honeybadger gem. Here are instructions for upgrading from 1.x to 2.x.
You can verify that tags are being added by looking at the UI:
Now that the tags are in place, you have a lot of options. You can easily add rules to:
Turn off alerts for sidekiq errors in staging
Send sidekiq errors to a special Slack chat room
Send sidekiq errors to a certain member of your team
Here's an example showing how I'd disable email alerts for errors with the tag "sidekiq"
If you have any questions about how to use these features, just drop us a line at firstname.lastname@example.org.