Skip to content

💡 Add ability to report crash events #2514

Open
@blchelle

Description

@blchelle

Is your feature request related to a problem? Please describe.
The datadog RUM sessions explorer has a "Crashes" filter that I'd like to be able to use. Unfortunately it currently seems impossible to emit an error event with the is_crash flag, despite that field being present on the RumErrorEvent type.

My guess is that the is_crash flag was was only intended to be used by the mobile sdk's but please let me know if I'm wrong.

Describe the solution you'd like
I'd like to be able to call datadogRum.addError(), and there is some way to specify whether the error was a crash or not.

For example, in our teams React application we have an component that wraps the rest of our application, if the fallback for the ErrorBoundary component renders, that means our application has "crashed" so I'd like to emit a crash event from there.

Describe alternatives you've considered
In my calls to addError(), I've attempted to manually set the is_crash property to true on the error, however this flag never seems to be propagated back to RUM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions