Honeybadger v0.10.2 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 Functions

Link to this function from_stacktrace(stacktrace) View Source
from_stacktrace([:erlang.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"}]