exsentry v0.3.0 ExSentry.Sender

A GenServer which handles the sending of a single Sentry request. Invoked from ExSentry.Client.

Summary

Functions

Sends a POST request to the given Sentry URL with the given headers and body, spawning a new ExSentry.Sender process to handle it. Handles retry, exponential backoff, and error logging

Sends a POST request to the given Sentry URL with the given headers and body, using the given ExSentry.Sender PID. Handles retry, exponential backoff, and error logging

Functions

send_request(url, headers, body)

Specs

send_request(String.t, [{String.t, String.t}], String.t) :: pid

Sends a POST request to the given Sentry URL with the given headers and body, spawning a new ExSentry.Sender process to handle it. Handles retry, exponential backoff, and error logging.

Returns pid of ExSentry.Sender process.

send_request(pid, url, headers, body)

Specs

send_request(pid, String.t, [{String.t, String.t}], String.t) :: pid

Sends a POST request to the given Sentry URL with the given headers and body, using the given ExSentry.Sender PID. Handles retry, exponential backoff, and error logging.

Returns pid of new ExSentry.Sender process.