Honeybadger v0.12.0 Honeybadger.Backtrace View Source

The Backtrace module contains functions for formatting system stacktraces.

Link to this section Summary

Functions

Convert a system stacktrace into an API compatible backtrace.

Link to this section Types

Link to this type

location() View Source
location() :: {:file, binary()} | {:line, pos_integer()}

Link to this type

stack_item() View Source
stack_item() :: {module(), atom(), arity() | [term()], [location()]}

Link to this section Functions

Link to this function

from_stacktrace(stacktrace) View Source
from_stacktrace([stack_item()]) :: [map()]

Convert a system stacktrace into an API compatible backtrace.

When filter_args is disabled the arguments will be included. Arguments are inspected and reported as binaries, regardless of the original format.

iex> stack_item = {:erlang, :funky, [{:ok, 123}], []}
...> Honeybadger.Backtrace.from_stacktrace([stack_item])
[%{file: nil, number: nil, method: "funky/1", args: [], context: "all"}]