Skip to content

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

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.

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.