# `PromEx.Utils`
[🔗](https://github.com/akoutmos/prom_ex/blob/master/lib/prom_ex/utils.ex#L1)

This module provides several general purpose utilities
for use in PromEx plugs.

# `duration_unit_plural`

```elixir
@type duration_unit_plural() ::
  :seconds | :milliseconds | :microseconds | :nanoseconds
```

# `exception_kind`

```elixir
@type exception_kind() :: :error | :exit | :throw
```

The kinds of exceptions that can occur

# `make_plural_atom`

```elixir
@spec make_plural_atom(System.time_unit()) :: atom()
```

Converts a `time_unit` to its plural form.

# `normalize_exception`

```elixir
@spec normalize_exception(exception_kind(), term(), term()) :: String.t()
```

Normalize exception messages for use as metric labels.

# `normalize_module_name`

```elixir
@spec normalize_module_name(String.t() | atom()) :: String.t()
```

Take a module name and normalize it for use as a metric
label.

---

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