---
title: Customizing error grouping
description: Customize how errors are grouped in Elixir applications to better organize and prioritize error reports.
url: https://docs.honeybadger.io/lib/elixir/errors/customizing-error-grouping/
---

Honeybadger groups similar exceptions together using rules which we’ve found to work the best in most cases. The default information we use to group errors is:

1. The file name, method name, and line number of the error’s location
2. The class name of the error
3. The component/controller name

We use this information to construct a “fingerprint” of the exception. Exceptions with the same fingerprint are treated as the same error in Honeybadger.

You can customize the grouping for each exception by changing the error class name, component, or stack trace—or by sending a custom fingerprint.

See the [Error Monitoring Guide](https://docs.honeybadger.io/guides/errors/#error-grouping) for more information about how honeybadger groups similar exception together. You can customize the grouping for each exception in Elixir by sending a custom *fingerprint* when the exception is reported.

To customize the fingerprint for all exceptions that are reported from your app, use the `fingerprint_adapter` configuration option in `config.ex`:

```elixir
config :honeybadger, fingerprint_adapter: MyApp.CustomFingerprint
```

Then, implement the `Honeybadger.FingerprintAdapter` behaviour in your module:

```elixir
 defmodule MyApp.CustomFingerprint do
  @behaviour Honeybadger.FingerprintAdapter


  def parse(notice) do
    notice.notifier.language <> "-" <> notice.notifier.name
  end
end
```

You can also customize the fingerprint for individual exceptions when calling `Honeybadger.notify`:

```elixir
Honeybadger.notify(%RuntimeError{}, fingerprint: "culprit_id-123")
```

---

## Try Honeybadger for FREE

Intelligent logging, error tracking, and Just Enough APM™ in one dev-friendly platform. Find and fix problems before users notice.

[Start free trial](https://app.honeybadger.io/users/sign_up)

[See plans and pricing](https://www.honeybadger.io/plans/)
