Raygun.Format

This module builds payloads of error messages that Raygun will understand. These functions return maps of data which will be encoding as JSON prior to submission to Raygun.

Source

Summary

conn_payload(conn, stacktrace, exception, opts)

Builds an error payload that Raygun will understand for an exception that was caught in our Plug

custom(opts)

Return custom information. Tags are configured per application via config and user custom data can be provided per error

details()

Returns deatils about the client and server machine

environment()

Return a map of information about the environment in which the bug was encountered

err(stacktrace, error)

Given a stacktrace and an exception, return a map with the error data

message_payload(msg, opts)

Builds an error payload that Raygun will understand for a string

now()

Get the current time in ISO 8601 format

request(conn)

Given a Plug Conn return a map containing information about the request

response(conn)

Given a Plug Conn return a map containing information about the response

stacktrace(s)

Given a stacktrace return a list of maps for the frames

stacktrace_entry(arg)

Given a stacktrace frame, return a map with the information in a structure that Raygun will understand

stacktrace_payload(stacktrace, exception, opts)

Builds an error payload that Raygun will understand for an exception and its corresponding stacktrace

user(opts)

Get the logged in user from the opts if one is provided. If not, it gets the system user if one is specified

Functions

conn_payload(conn, stacktrace, exception, opts)

Builds an error payload that Raygun will understand for an exception that was caught in our Plug.

Source
custom(opts)

Return custom information. Tags are configured per application via config and user custom data can be provided per error.

Source
details()

Returns deatils about the client and server machine.

Source
environment()

Return a map of information about the environment in which the bug was encountered.

Source
err(stacktrace, error)

Given a stacktrace and an exception, return a map with the error data.

Source
message_payload(msg, opts)

Builds an error payload that Raygun will understand for a string.

Source
now()

Get the current time in ISO 8601 format.

If you see an error sending messages to Raygun that looks like:

:ets.lookup(:tzdata_current_release, :release_version)

then you need to add :tzdata to your list of applications in your mix.exs file.

Source
request(conn)

Given a Plug Conn return a map containing information about the request.

Source
response(conn)

Given a Plug Conn return a map containing information about the response.

Source
stacktrace(s)

Given a stacktrace return a list of maps for the frames.

Source
stacktrace_entry(arg)

Given a stacktrace frame, return a map with the information in a structure that Raygun will understand.

Source
stacktrace_payload(stacktrace, exception, opts)

Builds an error payload that Raygun will understand for an exception and its corresponding stacktrace.

Source
user(opts)

Get the logged in user from the opts if one is provided. If not, it gets the system user if one is specified.

Source