# `Honeybadger.Utils`
[🔗](https://github.com/honeybadger-io/honeybadger-elixir/blob/v0.30.2/lib/honeybadger/utils.ex#L1)

Assorted helper functions used through out the Honeybadger package.

# `canonicalize`

Transform value into a consistently cased string representation

# Example

    iex> Honeybadger.Utils.canonicalize(:User_SSN)
    "user_ssn"

# `dotify`

Concatenate a list of items with a dot separator.

# Example

    iex> Honeybadger.Utils.dotify([:Honeybadger, :Utils])
    "Honeybadger.Utils"

# `module_to_string`

Internally all modules are prefixed with Elixir. This function removes the
`Elixir` prefix from the module when it is converted to a string.

# Example

    iex> Honeybadger.Utils.module_to_string(Honeybadger.Utils)
    "Honeybadger.Utils"

# `rand_id`

# `sanitize`

Configurable data sanitization. This currently:

- recursively truncates deep structures (to a depth of 20)
- constrains large string values (to 64k)
- filters out any map keys that might contain sensitive information.

Options:
- `:remove_filtered` - When `true`, filtered keys will be removed instead of replaced with "[FILTERED]". Default: `false`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
