Skip to content

Adding exception details appears to mess up the report on Sentry #235

@mcdurdin

Description

@mcdurdin

I'm not clear if this should be added here or in another location. Please move the issue as necessary.

We're manually reporting exceptions in our app by adding in the exception value when sending an event, as described at https://docs.sentry.io/platforms/native/#exceptions:

    exc = sentry_value_new_object();
    sentry_value_set_by_key(exc, "type", sentry_value_new_string(ExceptionClassName));
    sentry_value_set_by_key(exc, "value", sentry_value_new_string(Message));
    sentry_value_set_by_key(event, "exception", exc);

As soon as we do this, the report on Sentry ends up formatted wrongly, losing visibility of the call stack:

image

Using sentry-native 0.2.3. This issue arises both on sentry.io and our on premise sentry instance.

Originally raised at https://forum.sentry.io/t/corrupted-display-when-exception-data-is-set-using-native-sdk/9167/3

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