Skip to content

Context values not getting attached to native crashes #694

@lobsterkatie

Description

@lobsterkatie

OS:

  • Windows
  • [X ] MacOS
  • Linux

Platform:

  • [X ] iOS
  • Android

SDK:

  • [X ] @sentry/react-native 1.0.6
  • react-native-sentry

react-native version: 0.61.2

Init Code:

Sentry.init({
  dsn: 'https://xxxxxx@sentry.io/xxxxx',
  environment: 'prod',
  attachStacktrace: true,
  debug: true,
});
Sentry.setRelease('friday');

Sentry.configureScope(scope => {
  scope.setTags({dogs: 'yes', cats: 'maybe'});
  scope.setExtras({things: 'stuff'});
  scope.setUser({id: 26, email: 'maisey@dogsrule.com'});
});

I have following issue:

None of the values set on the scope come through on native crashes.

Steps to reproduce:
Add context to scope and trigger a native crash.

Actual result:
None of the scope data is displayed:

image

[no image of extra data to show here because it doesn't come through]

Expected result:
Scope data is added to event, as it is for JS events:

image

image

EDIT: Per @HazAT, this applies to breadcrumbs as well.

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