Angular change detection triggered by Sentry


#1

Hi,
I am using Sentry within Angular application, lately, I notice that Angular change detection is running in an endless loop !!! every few milliseconds.
Seems like that Sentry place a setInterval which triggered the change detection, I don’t know why it does it but if it does it, it must be outside of ngZone.

Did someone notice that? any solution?
I tried to put the initialization of Sentry outside of ngZone but it didn’t solve the problem.

Niro.


#2

If you insert console.log(), please check this Issue:

Sentry constantly triggering change detection in Angular2+ application. · Issue #1800 · getsentry/sentry-javascript https://github.com/getsentry/sentry-javascript/issues/1800