Angular integration can create events that exceed maximum size because templates are included
I received some HTTP error 413 calls in the console log. After inspection why the event submission failed, I found out it was about the send in over 5MB of stuff while posting as little as 3 events.
In this case it was caused by the angular integration / feature reporting, based on ngRoute. Path of the biggest chunks of data data are
[email protected].$template
and also
[email protected].$template
$template should probably not be included in the events, but I'm not sure if there are others. Best idea might be to pick the properties that should be included, instead of keeping an exclusion list?
I wanted to provide additional information about the previous and next routes for debugging but this can be a huge problem if the route contains templates and large amounts of scope info like yours. I almost think maybe we should be adding an overload for add object which takes a depth and an exclusion list and shrinks it so we only go two levels deep. What do you think about this?
Yeah, totally agreed that we need to add a max depth feature on the client. Also, the angular integration should add a global exclude for $template
https://github.com/exceptionless/Exceptionless.JavaScript/issues/37