[Tiki-devel] GlitchTip, an error reporting tool
Fabio Montefuscolo <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <CAF4KPBTaQ61Lvj2Ar2JkTs0orAC0ji=96Z_O=2RVA07G-ZEG6Q@mail.gmail.com> |
Dear community I had a task about researching reporting tools and I ended up trying GlitchTip, that is a real OpenSource alternative to Sentry. The tool is capable to catch unhandled exception and errors on many programming languages, including PHP and JavaScript. After you wire GlitchTip to your site, the errors start to popup in the report page. We have a good amount of useful information, like the error stack trace, browser and OS version and some HTTP headers. Tracking JavaScript errors is pretty easy. You just need to go to "Settings > Control Panels > Look & feel > Customization" and add GlitchTip code[1] into "Custom HTML head content". But tracking PHP errors is not easy yet. We would need to change some bytes on Tiki code. Basically, to GlitchTip catch errors on PHP side we would need to add a library[2] and initialize the API as soon as possible, probably in tiki-setup or tiki-setup_base. Also, we need to keep somewhere the DSN code. If we store as preference, then that means the GlitchTip initialization will happen after loading preferences, and errors before that will not appear. Does anyone have an idea about how to integrate GlitchTip library into Tiki? When is a good moment to initialize GlitchTip. [1] - https://glitchtip.com/sdkdocs/javascript-browser [2] - https://glitchtip.com/sdkdocs/php Thanks _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel