View Source ErrorTracker.Web.Router (ErrorTracker v0.5.0)

ErrorTracker UI integration into your application's router.

Summary

Functions

Creates the routes needed to use the ErrorTracker web interface.

Functions

Link to this macro

error_tracker_dashboard(path, opts \\ [])

View Source (macro)

Creates the routes needed to use the ErrorTracker web interface.

It requires a path in which you are going to serve the web interface.

Security considerations

The dashboard inlines both the JS and CSS assets. This means that, if your application has a Content Security Policy, you need to specify the csp_nonce_assign_key option, which is explained below.

Options

  • on_mount: a list of mount hooks to use before invoking the dashboard LiveView views.

  • as: a session name to use for the dashboard LiveView session. By default it uses :error_tracker_dashboard.

  • csp_nonce_assign_key: an assign key to find the CSP nonce value used for assets. Supports either atom() or a map of type %{optional(:img) => atom(), optional(:script) => atom(), optional(:style) => atom()}