Raygun

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
Source

Summary

report_exception(exception, opts \\ %{})

Convenience function that captures the most recent stacktrace and reports it along with the exception. NOTE: it is the responsiblity of the caller to ensure that the most recent stacktrace is the one associated with the exception

report_message(msg, opts \\ %{})

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

report_plug(conn, stacktrace, exception, opts \\ %{})

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

report_stacktrace(stacktrace, exception, opts \\ %{})

Reports an exception and its corresponding stacktrace to Raygun

send_report(json)

Send an error to Raygun

Functions

report_exception(exception, opts \\ %{})

Convenience function that captures the most recent stacktrace and reports it along with the exception. NOTE: it is the responsiblity of the caller to ensure that the most recent stacktrace is the one associated with the exception.

Source
report_message(msg, opts \\ %{})

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

Source
report_plug(conn, stacktrace, exception, opts \\ %{})

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.

Source
report_stacktrace(stacktrace, exception, opts \\ %{})

Reports an exception and its corresponding stacktrace to Raygun.

Source
send_report(json)

Send an error to Raygun.

Source