raygun v0.4.0 Raygun.Util View Source

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

Link to this section Summary

Functions

Given stacktrace information, get the file name.

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

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

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

Like Application.get_env only for get_key function.

Given stacktrace information, get the line number.

Return the module name as a string (binary).

Link to this section Functions

Given stacktrace information, get the file name.

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

Link to this function

function_and_arity(function, list)

View Source

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

Link to this function

get_env(app, key, default \\ nil)

View Source

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

Link to this function

get_key(app, key, default \\ nil)

View Source

Like Application.get_env only for get_key function.

Given stacktrace information, get the line number.

Return the module name as a string (binary).