You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for stringifying event data with a maxDepth #25
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
$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?
changed the title [-]Angular integration can create events that exceed maximum size because templates are included[/-][+]Add support for stringifying event data with a maxDepth[/+]on Feb 21, 2023
Activity
niemyjski commentedon Sep 15, 2015
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?
ejsmith commentedon Oct 11, 2015
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
niemyjski commentedon Sep 23, 2016
#37
[-]Angular integration can create events that exceed maximum size because templates are included[/-][+]Add support for stringifying event data with a maxDepth[/+]Added tests for #25
Added tests for #25