raygun v0.4.0 Raygun View Source

Send errors to Raygun. Errors can be captured in three different ways.

  1. Any errors that are logged
  2. Any exceptions that occur in a Plug
  3. Programmatically

All the functions will return :ok or {:error, reason}

Link to this section Summary

Functions

Reports a string message. This function is used by the Raygun.Logger but it can also be used to report any string message.

Reports an exception and its corresponding stacktrace to Raygun. Additionally this captures some additional information about the environment in which the exception occurred by retrieving some state from the Plug Conn.

Reports an exception and its corresponding stacktrace to Raygun.

Link to this section Functions

Link to this function

report_exception(exception, opts \\ [])

View Source
This function is deprecated. Use report_stacktrace/2 instead.
Link to this function

report_message(msg, opts \\ [])

View Source

Reports a string message. This function is used by the Raygun.Logger but it can also be used to report any string message.

Link to this function

report_plug(conn, stacktrace, exception, opts \\ [])

View Source

Reports an exception and its corresponding stacktrace to Raygun. Additionally this captures some additional information about the environment in which the exception occurred by retrieving some state from the Plug Conn.

Link to this function

report_stacktrace(stacktrace, exception, opts \\ [])

View Source

Reports an exception and its corresponding stacktrace to Raygun.