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.

Get the Honeybadger newsletter

Each month we share news, best practices, and stories from the DevOps & monitoring community—exclusively for developers like you.
    author photo
    Starr Horne

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

    More articles by Starr Horne
    An advertisement for Honeybadger that reads 'Move fast and fix things.'

    "We love Honeybadger. Not only is it a fab tool and very affordable, they feel like a partner - whenever we needed help we got FIRST CLASS service."

    Fix errors, eliminate performance bottlenecks, and dig into the details faster than ever before. With support for Ruby, Elixir, and 8 other languages, Honeybadger is the best way to gain real-time insights into your application’s health and performance.

    Get started for free
    Simple 5-minute setup — No credit card required