Angular change detection triggered by Sentry


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.


1 Like


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

Sentry constantly triggering change detection in Angular2+ application. · Issue #1800 · getsentry/sentry-javascript



Thanks for your answer.
Can you explain why console log will trigger change detection?