Raygun.Util

This module contains utility functions for formatting particular pieces of stacktrace data into strings.

Source

Summary

file_from(list)

Given stacktrace information, get the file name

format_headers(headers)

Headers are a list of Tuples. Convert them to a keyword list

function_and_arity(function, list)

Given a function name (atom) and arity (number), return a string in the form func_name/2

get_env(app, key, default \\ nil)

So in a release this seems to return {:key, value} instead of {:ok, value} for some reason. So we accept that form as well

get_key(app, key, default \\ nil)

Like Application.get_env only for get_key function

line_from(list)

Given stacktrace information, get the line number

mod_for(module)

Return the module name as a string (binary)

Functions

file_from(list)

Given stacktrace information, get the file name.

Source
format_headers(headers)

Headers are a list of Tuples. Convert them to a keyword list.

Source
function_and_arity(function, list)

Given a function name (atom) and arity (number), return a string in the form func_name/2.

Source
get_env(app, key, default \\ nil)

So in a release this seems to return {:key, value} instead of {:ok, value} for some reason. So we accept that form as well….

Source
get_key(app, key, default \\ nil)

Like Application.get_env only for get_key function.

Source
line_from(list)

Given stacktrace information, get the line number.

Source
mod_for(module)

Return the module name as a string (binary).

Source