Hey Paul,
This can have all sorts of reasons but trying to submit notices to Sentry is the leading suspect although it’s weird nothing is coming through…
It’s very hard to debug from my seat, but did you make sure the DSN is set-up correctly and not missing a character?
Thanks for your help, it seems I’m dealing with a few issues. One resolved, one remaining.
We were using self hosted sentry and it seems for some reason the web server can’t communicate with the sentry server. However it works from local. I confirmed this using a curl request as well: works from local, fails from web server. It’s pretty weird and we can’t figure it out.
So I switched to the hosted version. Now notices are coming through from Sentry but I have to have wordpress debug as true. Is that expected?
However this didn’t resolve the performance issue. Page load increases and for a page with lots of php notices (around 10 notices) it increases from around 2s to 20s. It’s definitely sentry because if I comment out define(‘WP_SENTRY_DSN’, $dsn); it returns to normal.
I’ll try and dig around in the code but I’m an amateur developer so any further advice would be helpful.
Update: Resolving the php notices on our site resolved the performance issues. It does leave me with a nagging concern that the issue tracker exacerbates any issues though.
Hey Paul,
WP_DEBUG should definitly not be on to see notices in Sentry, that is why the performance hit also occures with WP_DEBUG off, it’s still submitting notices.
Unfortunalty there is not much we can do about this, notices can be disabled ofcourse so you won’t be bothered by them by they are “errors” and are submitted to Sentry and that takes time and overhead for the HTTP request, there is not much to do about that I am afraid. Lot’s of errors -> lot’s of overhead.
Usually the performance penalty is a non-issue because if there is an error (or notice causing incorrect behavior) I would say you want to know about it instead of having the best performance on a broken site 🙂
If you are using the Sentry.io service pleaase do contact support to find out why there are connection issues from your server.