Sentry.HTTPClient behaviour (sentry v8.0.6) View Source

Specifies the API for using a custom HTTP Client.

The default HTTP client is Sentry.HackneyClient

To configure a different HTTP client, implement the Sentry.HTTPClient behaviour and change the :client configuration:

config :sentry,
  client: MyHTTPClient

Link to this section Summary

Link to this section Types


headers() :: [{String.t(), String.t()}]

Link to this section Callbacks


child_spec() :: :supervisor.child_spec()
Link to this callback

post(url, headers, body)

View Source


post(url :: String.t(), headers(), body :: String.t()) ::
  {:ok, status :: pos_integer(), headers(), body :: String.t()}
  | {:error, term()}