Honeybadger.Utils (Honeybadger v0.16.0) View Source

Assorted helper functions used through out the Honeybadger package.

Link to this section Summary

Functions

Transform value into a consistently cased string representation

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

Configurable data sanitization. This currently

Link to this section Functions

Transform value into a consistently cased string representation

Example

iex> Honeybadger.Utils.canonicalize(:User_SSN)
"user_ssn"
Link to this function

module_to_string(module)

View Source

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"
Link to this function

sanitize(value, opts \\ [])

View Source

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.