Skip to content

Request for option to limit reported stacktrace. #122

@dmitry-dedukhin

Description

@dmitry-dedukhin

Hi.

I've faced with the problem in my YUI3 application.
Exceptions in YUI3 can have huge stacktrace so the GET-request sent to Sentry API is too long and I get an error from Sentry api:

Bad Request
Request Line is too large (4380 > 4094)

Could you please add an option to limit stacktrace up to the specified number of last entries?
For now I use local copy of the library with one line added:

var stack = TraceKit.computeStackTrace(ex);
+ stack.stack = stack.stack.slice(0, 5);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions