TODO: Add description
If available in Hex, the package can be installed
by adding queuetopia_bug_reporter
to your list of dependencies in mix.exs
:
def deps do
[
{:queuetopia_bug_reporter, "~> 0.1.0"}
]
end
To config, add the code below in the config/runtime.exs file.
config :queuetopia_bug_reporter,
from_email_address: System.fetch_env!("FROM_EMAIL_ADDRESS"),
to_email_address: System.fetch_env!("TO_EMAIL_ADDRESS"),
min_job_attempts_for_alert:
System.get_env("MIN_JOB_ATTEMPTS_FOR_ALERT", "1") |> String.to_integer()
config :queuetopia_bug_reporter, QueuetopiaBugReporter.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: System.get_env("SMTP_RELAY"),
port: System.get_env("SMTP_PORT", "1025") |> String.to_integer(),
retries: System.get_env("SMTP_RETRIES", "5") |> String.to_integer()
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/queuetopia_bug_reporter.