Honeybadger v0.7.0 Honeybadger.Filter behaviour

Specification of user overrideable filter functions.

See moduledoc for Honeybadger.Filter.Mixin for details on implementing your own filter.

Summary

Callbacks

For applications that use Honeybadger.Plug, filter the cgi_data

Filter the context Map. The context is a map of application supplied data

Filter the error message string. This is the message from the most recently thrown error

For applications that use Honeybadger.Plug, filters the query parameters. The parameters is a map of String.t to String.t, e.g

For applications that use Honeybadger.Plug, filter the session

Callbacks

filter_cgi_data(map)
filter_cgi_data(map) :: map

For applications that use Honeybadger.Plug, filter the cgi_data.

cgi_data is a map of String.t to String.t which includes HTTP headers and other pre-defined request data (including PATH_INFO, QUERY_STRING, SERVER_PORT etc.).

filter_context(map)
filter_context(map) :: map

Filter the context Map. The context is a map of application supplied data.

filter_error_message(arg0)
filter_error_message(String.t) :: String.t

Filter the error message string. This is the message from the most recently thrown error.

filter_params(map)
filter_params(map) :: map

For applications that use Honeybadger.Plug, filters the query parameters. The parameters is a map of String.t to String.t, e.g.:

%{"user_name" => "fred", "password" => "12345"}
filter_session(map)
filter_session(map) :: map

For applications that use Honeybadger.Plug, filter the session.