sentry v3.0.0 Sentry.Client

Provides basic HTTP client request and response handling for the Sentry API.

Summary

Functions

Generates a Sentry API authorization header

Get a Sentry DSN which is simply a URI

Makes the HTTP request to Sentry using hackney

Starts an unlinked asynchronous task that will attempt to send the event to the Sentry API up to 4 times with exponential backoff

Types

get_dsn()
get_dsn() :: {String.t, String.t, Integer.t}

Functions

authorization_header(public_key, secret_key)
authorization_header(String.t, String.t) :: String.t

Generates a Sentry API authorization header.

authorization_headers(public_key, secret_key)
get_dsn!()
get_dsn!() :: get_dsn

Get a Sentry DSN which is simply a URI.

hackney_pool_name()
request(method, url, headers, body)

Makes the HTTP request to Sentry using hackney.

Hackney options can be set via the hackney_opts configuration option.

send_event(event)
send_event(%Sentry.Event{breadcrumbs: term, culprit: term, environment: term, event_id: term, exception: term, extra: term, level: term, message: term, platform: term, release: term, request: term, server_name: term, stacktrace: term, tags: term, timestamp: term, user: term}) ::
  {:ok, String.t} |
  :error

Starts an unlinked asynchronous task that will attempt to send the event to the Sentry API up to 4 times with exponential backoff.

The event is dropped if it all retries fail.