Errorgap (errorgap v0.1.0)

Copy Markdown View Source

Elixir notifier for Errorgap. Configure via Application env, then call Errorgap.notify/2 directly, attach Errorgap.Plug to your Phoenix endpoint, or wire Errorgap.LoggerHandler into :logger for handler-style capture of crash reports and high-severity logs.

Summary

Functions

Block until all queued notices have been delivered. Use during graceful shutdown.

Report an exception or string error to Errorgap. Returns :ok when the notice is queued or successfully delivered, {:error, reason} otherwise.

Functions

flush(timeout \\ 5000)

@spec flush(timeout()) :: :ok

Block until all queued notices have been delivered. Use during graceful shutdown.

notify(error, opts \\ [])

@spec notify(
  Exception.t() | binary(),
  keyword()
) :: :ok | {:error, term()}

Report an exception or string error to Errorgap. Returns :ok when the notice is queued or successfully delivered, {:error, reason} otherwise.

version()