Re: [Tiki-devel] GlitchTip, an error reporting tool
Fabio Montefuscolo <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <CAF4KPBTq-ap4Ym9G4YY=Jwp_2YoCRA2hsPVcfAHK935bjKyvHw@mail.gmail.com> |
Hi Brendan I am glad I got your attention! These "actions" you are talking about, they are ideas or that already exists on Tiki? Bye bye :) On Wed, Apr 7, 2021 at 4:51 PM Brendan Ferguson <[email protected]> wrote: > Actions can be initialized upon preference changes. Create a “flag file” > or remove the “flag file” when the preference is created. Then check for > the file to initialize. > > This also ties into the creation of a tiki preference file. There seems to > be a real need for it. We currently have a lock file, and now also “super > admin” actions that require a file. We have our database configuration as > well. This should be a line in that file somewhere. Ideally, that is. > > My 3 cents. > > Brendan > > > > On Apr 7, 2021, at 2:28 PM, Fabio Montefuscolo < > [email protected]> wrote: > > 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 > > > _______________________________________________ > TikiWiki-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel