Closed spwoodcock closed 4 months ago
Matomo component done.
A Sentry component doesn't have anything visual, just initialisation code. It's probably best leaving this to each project to configure - it's pretty easy to do.
Closing.
If a component could be made that handles either Sentry or OpenTelemetry based config, then this could be re-opened. (as OpenTelemetry is not trivial & it could be useful to write a standardised way to do things)
We use Sentry for tracking application errors and Matomo for usage statistics.
Matomo
The Matomo banner looks like this:
The code is here https://github.com/hotosm/matomo-tracking
A new Web Component should be made for this banner, wrapping a few existing web components, for easy integration into frontends:
Sentry
If possible, can the sentry component load in the Sentry JS code dynamically? So it's only loaded via CDN if the component is used. It then needs to init Sentry:
The web component should be configurable: