Tagging errors
Tags allow you to categorize and filter errors in Honeybadger. You can use tags to:
- Group errors by feature area (e.g., “checkout”, “auth”, “api”)
- Mark errors by severity or priority
- Filter errors in the Honeybadger dashboard
Adding tags to errors
Section titled “Adding tags to errors”To tag errors when reporting them to Honeybadger, use honeybadger.Tags:
honeybadger.Notify(err, honeybadger.Tags{"timeout", "http"})You can add multiple tags as separate strings in the slice.
Combining tags with other options
Section titled “Combining tags with other options”Tags can be combined with context and other notification options:
honeybadger.Notify(err, honeybadger.Tags{"checkout", "payment"}, honeybadger.Context{"order_id": 12345},)See the Go package documentation for more details.