We're working on something new! Hook Relay gives you Stripe-quality webhooks in minutes. Sign up for free today! Check out Hook Relay

Tag exceptions automatically to unlock great power

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."

Honeybadger.context(tags: '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:

Tag 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

To do this, you'll use our advanced search syntax combined with search filters for notifications.

Here's an example showing how I'd disable email alerts for errors with the tag "sidekiq"

advanced search filter

If you have any questions about how to use these features, just drop us a line at support@honeybadger.io.

Honeybadger has your back when it counts. We're the only error tracker that combines exception monitoring, uptime monitoring, and cron monitoring into a single, simple to use platform.

Our mission: to tame production and make you a better, more productive developer. Learn more

author photo

Starr Horne

Starr Horne is a Rubyist and Chief JavaScripter at Honeybadger.io. When she's not neck-deep in other people's bugs, she enjoys making furniture with traditional hand-tools, reading history and brewing beer in her garage in Seattle.