File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed
RNSentryCocoaTester/RNSentryCocoaTesterTests Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
## Unreleased
10
10
11
+ ### Features
12
+
13
+ - Send Sentry react-native SDK version in the session replay event (#4450 )
14
+
11
15
### Fixes
12
16
13
17
- Add mechanism field to unhandled rejection errors ([ #4457 ] ( https://github.com/getsentry/sentry-react-native/pull/4457 ) )
Original file line number Diff line number Diff line change @@ -48,12 +48,13 @@ final class RNSentryReplayOptions: XCTestCase {
48
48
}
49
49
50
50
func assertAllDefaultReplayOptionsAreNotNil( replayOptions: [ String : Any ] ) {
51
- XCTAssertEqual ( replayOptions. count, 5 )
51
+ XCTAssertEqual ( replayOptions. count, 6 )
52
52
XCTAssertNotNil ( replayOptions [ " sessionSampleRate " ] )
53
53
XCTAssertNotNil ( replayOptions [ " errorSampleRate " ] )
54
54
XCTAssertNotNil ( replayOptions [ " maskAllImages " ] )
55
55
XCTAssertNotNil ( replayOptions [ " maskAllText " ] )
56
56
XCTAssertNotNil ( replayOptions [ " maskedViewClasses " ] )
57
+ XCTAssertNotNil ( replayOptions [ " sdkInfo " ] )
57
58
}
58
59
59
60
func testSessionSampleRate( ) {
Original file line number Diff line number Diff line change 1
1
#import " RNSentryReplay.h"
2
2
#import " RNSentryReplayBreadcrumbConverterHelper.h"
3
+ #import " RNSentryVersion.h"
3
4
#import " React/RCTTextView.h"
4
5
#import " Replay/RNSentryReplayMask.h"
5
6
#import " Replay/RNSentryReplayUnmask.h"
@@ -27,6 +28,8 @@ + (void)updateOptions:(NSMutableDictionary *)options
27
28
@" maskAllImages" : replayOptions[@" maskAllImages" ] ?: [NSNull null ],
28
29
@" maskAllText" : replayOptions[@" maskAllText" ] ?: [NSNull null ],
29
30
@" maskedViewClasses" : [RNSentryReplay getReplayRNRedactClasses: replayOptions],
31
+ @" sdkInfo" :
32
+ @ { @" name" : REACT_NATIVE_SDK_NAME, @" version" : REACT_NATIVE_SDK_PACKAGE_VERSION }
30
33
}
31
34
forKey: @" sessionReplay" ];
32
35
}
Original file line number Diff line number Diff line change 1
1
#import < Foundation/Foundation.h>
2
2
3
3
extern NSString *const NATIVE_SDK_NAME;
4
+ extern NSString *const REACT_NATIVE_SDK_NAME;
4
5
extern NSString *const REACT_NATIVE_SDK_PACKAGE_NAME;
5
6
extern NSString *const REACT_NATIVE_SDK_PACKAGE_VERSION;
Original file line number Diff line number Diff line change 1
1
#import " RNSentryVersion.h"
2
2
3
3
NSString *const NATIVE_SDK_NAME = @" sentry.cocoa.react-native" ;
4
+ NSString *const REACT_NATIVE_SDK_NAME = @" sentry.javascript.react-native" ;
4
5
NSString *const REACT_NATIVE_SDK_PACKAGE_NAME = @" npm:@sentry/react-native" ;
5
6
NSString *const REACT_NATIVE_SDK_PACKAGE_VERSION = @" 6.5.0" ;
You can’t perform that action at this time.
0 commit comments