-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/replay
- Loading branch information
Showing
31 changed files
with
959 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,59 @@ | |
|
||
Access to Mobile Replay is limited to early access orgs on Sentry. If you're interested, [sign up for the waitlist](https://sentry.io/lp/mobile-replay-beta/) | ||
|
||
## 5.24.1 | ||
|
||
### Fixes | ||
|
||
- App Start Native Frames can start with zeroed values ([#3881](https://github.com/getsentry/sentry-react-native/pull/3881)) | ||
|
||
### Dependencies | ||
|
||
- Bump Cocoa SDK from v8.28.0 to v8.29.1 ([#3890](https://github.com/getsentry/sentry-react-native/pull/3890)) | ||
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8291) | ||
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.28.0...8.29.1) | ||
|
||
## 5.24.0 | ||
|
||
### Features | ||
|
||
- Add native application start spans ([#3855](https://github.com/getsentry/sentry-react-native/pull/3855), [#3884](https://github.com/getsentry/sentry-react-native/pull/3884)) | ||
- This doesn't change the app start measurement length, but add child spans (more detail) into the existing app start span | ||
- Added JS Bundle Execution start information to the application start measurements ([#3857](https://github.com/getsentry/sentry-react-native/pull/3857)) | ||
|
||
### Fixes | ||
|
||
- Add more expressive debug logs to Native Frames Integration ([#3880](https://github.com/getsentry/sentry-react-native/pull/3880)) | ||
- Add missing tracing integrations when using `client.init()` ([#3882](https://github.com/getsentry/sentry-react-native/pull/3882)) | ||
- Ensure `sentry-cli` doesn't trigger Xcode `error:` prefix ([#3887](https://github.com/getsentry/sentry-react-native/pull/3887)) | ||
- Fixes `--allow-failure` failing Xcode builds | ||
|
||
### Dependencies | ||
|
||
- Bump Cocoa SDK from v8.27.0 to v8.28.0 ([#3866](https://github.com/getsentry/sentry-react-native/pull/3866)) | ||
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8280) | ||
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.27.0...8.28.0) | ||
- Bump Android SDK from v7.8.0 to v7.10.0 ([#3805](https://github.com/getsentry/sentry-react-native/pull/3805)) | ||
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7100) | ||
- [diff](https://github.com/getsentry/sentry-java/compare/7.8.0...7.10.0) | ||
- Bump JavaScript SDK from v7.113.0 to v7.117.0 ([#3806](https://github.com/getsentry/sentry-react-native/pull/3806)) | ||
- [changelog](https://github.com/getsentry/sentry-javascript/blob/v7/CHANGELOG.md#71170) | ||
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.113.0...7.117.0) | ||
|
||
## 5.23.1 | ||
|
||
### Fixes | ||
|
||
- Fix failing iOS builds due to missing SentryLevel ([#3854](https://github.com/getsentry/sentry-react-native/pull/3854)) | ||
- Add missing logs to dropped App Start spans ([#3861](https://github.com/getsentry/sentry-react-native/pull/3861)) | ||
- Make all options of `startTimeToInitialDisplaySpan` optional ([#3867](https://github.com/getsentry/sentry-react-native/pull/3867)) | ||
- Add Span IDs to Time to Display debug logs ([#3868](https://github.com/getsentry/sentry-react-native/pull/3868)) | ||
- Use TTID end timestamp when TTFD should be updated with an earlier timestamp ([#3869](https://github.com/getsentry/sentry-react-native/pull/3869)) | ||
|
||
## 5.23.0 | ||
|
||
This release does *not* build on iOS. Please use `5.23.1` or newer. | ||
|
||
### Features | ||
|
||
- Functional integrations ([#3814](https://github.com/getsentry/sentry-react-native/pull/3814)) | ||
|
@@ -638,7 +691,7 @@ This release is compatible with `[email protected]` and newer. | |
}); | ||
``` | ||
|
||
Read more at https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#7690 | ||
Read more at <https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#7690> | ||
|
||
- Report current screen in `contexts.app.view_names` ([#3339](https://github.com/getsentry/sentry-react-native/pull/3339)) | ||
|
||
|
@@ -1029,6 +1082,7 @@ This has been fixed in [version `5.9.1`](https://github.com/getsentry/sentry-rea | |
## 5.4.0 | ||
|
||
### Features | ||
|
||
- Add TS 4.1 typings ([#2995](https://github.com/getsentry/sentry-react-native/pull/2995)) | ||
- TS 3.8 are present and work automatically with older projects | ||
- Add CPU Info to Device Context ([#2984](https://github.com/getsentry/sentry-react-native/pull/2984)) | ||
|
@@ -2676,7 +2730,7 @@ We are looking into ways making this more stable and plan to re-enable it again | |
|
||
## v0.23.2 | ||
|
||
- Fixed #228 again ¯\\_(ツ)_/¯ | ||
- Fixed #228 again ¯\\*(ツ)*/¯ | ||
|
||
## v0.23.1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryBreadcrumbTests.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#import <XCTest/XCTest.h> | ||
#import "RNSentryBreadcrumb.h" | ||
@import Sentry; | ||
|
||
@interface RNSentryBreadcrumbTests : XCTestCase | ||
|
||
@end | ||
|
||
@implementation RNSentryBreadcrumbTests | ||
|
||
- (void)testGeneratesSentryBreadcrumbFromNSDictionary | ||
{ | ||
SentryBreadcrumb* actualCrumb = [RNSentryBreadcrumb from:@{ | ||
@"level": @"error", | ||
@"category": @"testCategory", | ||
@"type": @"testType", | ||
@"message": @"testMessage", | ||
@"data": @{ | ||
@"test": @"data" | ||
} | ||
}]; | ||
|
||
XCTAssertEqual(actualCrumb.level, kSentryLevelError); | ||
XCTAssertEqual(actualCrumb.category, @"testCategory"); | ||
XCTAssertEqual(actualCrumb.type, @"testType"); | ||
XCTAssertEqual(actualCrumb.message, @"testMessage"); | ||
XCTAssertTrue([actualCrumb.data isKindOfClass:[NSDictionary class]]); | ||
XCTAssertEqual(actualCrumb.data[@"test"], @"data"); | ||
} | ||
|
||
- (void)testUsesInfoAsDefaultSentryLevel | ||
{ | ||
SentryBreadcrumb* actualCrumb = [RNSentryBreadcrumb from:@{ | ||
@"message": @"testMessage", | ||
}]; | ||
|
||
XCTAssertEqual(actualCrumb.level, kSentryLevelInfo); | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
@class SentryBreadcrumb; | ||
|
||
@interface RNSentryBreadcrumb : NSObject | ||
|
||
+ (SentryBreadcrumb *)from: (NSDictionary *) dict; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#import "RNSentryBreadcrumb.h" | ||
@import Sentry; | ||
|
||
@implementation RNSentryBreadcrumb | ||
|
||
+(SentryBreadcrumb*) from: (NSDictionary *) dict | ||
{ | ||
SentryBreadcrumb* crumb = [[SentryBreadcrumb alloc] init]; | ||
|
||
NSString * levelString = dict[@"level"]; | ||
SentryLevel sentryLevel; | ||
if ([levelString isEqualToString:@"fatal"]) { | ||
sentryLevel = kSentryLevelFatal; | ||
} else if ([levelString isEqualToString:@"warning"]) { | ||
sentryLevel = kSentryLevelWarning; | ||
} else if ([levelString isEqualToString:@"error"]) { | ||
sentryLevel = kSentryLevelError; | ||
} else if ([levelString isEqualToString:@"debug"]) { | ||
sentryLevel = kSentryLevelDebug; | ||
} else { | ||
sentryLevel = kSentryLevelInfo; | ||
} | ||
|
||
[crumb setLevel:sentryLevel]; | ||
[crumb setCategory:dict[@"category"]]; | ||
[crumb setType:dict[@"type"]]; | ||
[crumb setMessage:dict[@"message"]]; | ||
[crumb setData:dict[@"data"]]; | ||
|
||
return crumb; | ||
} | ||
|
||
@end |
Oops, something went wrong.