View Source Honeybadger.Utils (Honeybadger v0.22.0)

Assorted helper functions used through out the Honeybadger package.

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

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.