Skip to content

Commit

Permalink
Merge aff18bf into 4ed1be9
Browse files Browse the repository at this point in the history
  • Loading branch information
antonis authored Oct 23, 2024
2 parents 4ed1be9 + aff18bf commit e045c61
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

## Unreleased

### Fixes

- Adds breadcrumb origin field to prevent exception capture context from being overwritten by native scope sync ([#4124](https://github.com/getsentry/sentry-react-native/pull/4124))

### Dependencies

- Bump JavaScript SDK from v8.34.0 to v8.35.0 ([#4196](https://github.com/getsentry/sentry-react-native/pull/4196))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public static Breadcrumb fromMap(ReadableMap from) {
breadcrumb.setCategory(from.getString("category"));
}

if (from.hasKey("origin")) {
breadcrumb.setOrigin(from.getString("origin"));
}

if (from.hasKey("level")) {
switch (from.getString("level")) {
case "fatal":
Expand Down
1 change: 1 addition & 0 deletions packages/core/ios/RNSentryBreadcrumb.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ +(SentryBreadcrumb*) from: (NSDictionary *) dict

[crumb setLevel:sentryLevel];
[crumb setCategory:dict[@"category"]];
[crumb setOrigin:dict[@"origin"]];
[crumb setType:dict[@"type"]];
[crumb setMessage:dict[@"message"]];
[crumb setData:dict[@"data"]];
Expand Down

0 comments on commit e045c61

Please sign in to comment.