Skip to content

Add support for stringifying event data with a maxDepth #25

Closed

Description

@srijken

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?

Activity

  1. niemyjski commented on Sep 15, 2015

    @niemyjski
    Member

    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?

  2. ejsmith commented on Oct 11, 2015

    @ejsmith
    Member

    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

  3. niemyjski commented on Sep 23, 2016

    @niemyjski
    Member
  4. 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
  5. self-assigned this
    on Feb 21, 2023
  6. added a commit that references this issue on Mar 1, 2023
  7. added a commit that references this issue on Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions