View Source PlausibleWeb.Live.SentryContext (Plausible v0.0.1)
This module tries to supply LiveViews with some common Sentry context (without it, there is practically none).
Use via use PlausibleWeb.Live.SentryContext
in your LiveView module,
or preferably via use PlausibleWeb, :live_view
.
In case you have multiple LiveViews, there is use PlausibleWeb, live_view: :no_sentry_context
exposed that allows you to skip using this module. This is because
only the root LiveView has access to connect_info
and an exception will be
thrown otherwise.