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
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
data.@request.current.locals.$template
and also
data.@request.next.locals.$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?
The text was updated successfully, but these errors were encountered:
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?
niemyjski
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
Feb 21, 2023
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
and also
$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?
The text was updated successfully, but these errors were encountered: