Packages

This package allows your Phoenix application to send notifications whenever an exceptions is raised. By default it includes an email and a webhook notifier, but you can implement your custom ones.

Current section

Files

Jump to
boom_notifier lib boom_notifier mail_notifier templates email_body.html.eex
Raw

lib/boom_notifier/mail_notifier/templates/email_body.html.eex

<%= for error <- errors do %>
<p><%= error.exception_summary %></p>
<%= if error.request do %>
<ul style="list-style-type: none;">
<li>Request Information:</li>
<li>URL: <%= error.request.url %></li>
<li>Path: <%= error.request.path %></li>
<li>Method: <%= error.request.method %></li>
<li>Port: <%= error.request.port %></li>
<li>Scheme: <%= error.request.scheme %></li>
<li>Query String: <%= error.request.query_string %></li>
<li>Client IP: <%= error.request.client_ip %></li>
</ul>
<% end %>
<ul style="list-style-type: none;">
<li>Occurred on: <%= error.timestamp %></li>
</ul>
<%= if error.metadata do %>
<ul style="list-style-type: none;">
<li>
Metadata:
<ul style="list-style-type: none;">
<%= for {source, fields} <- error.metadata do %>
<%= source %>:
<ul style="list-style-type: none;">
<%= for {k, v} <- fields do %>
<li><%= k %>: <%= v %> </li>
<% end %>
</ul>
<% end %>
</ul>
</li>
</ul>
<% end %>
<ul style="list-style-type: none; font-family: mono;">
<%= for entry <- error.exception_stack_entries do %>
<li><%= entry %></li>
<% end %>
</ul>
<%= if error.reason do %>
<p>
Reason: <br />
<%= error.reason %>
</p>
<% end %>
<hr>
<% end %>