@bugsnag/plugin-react-native-span-access 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#import <Foundation/Foundation.h>
|
|
2
2
|
#import <BugsnagPerformance/BugsnagPerformancePlugin.h>
|
|
3
|
+
#import <BugsnagReactNativePerformance/BugsnagPerformanceAppStartProvider.h>
|
|
3
4
|
|
|
4
5
|
NS_ASSUME_NONNULL_BEGIN
|
|
5
6
|
|
|
6
|
-
@interface BugsnagReactNativeAppStartPlugin: NSObject <BugsnagPerformancePlugin>
|
|
7
|
+
@interface BugsnagReactNativeAppStartPlugin: NSObject <BugsnagPerformancePlugin, BugsnagPerformanceAppStartProvider>
|
|
7
8
|
|
|
8
9
|
- (instancetype)init;
|
|
9
10
|
- (instancetype)initWithTimeout:(NSTimeInterval)timeout;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
#import <BugsnagPerformance/BugsnagPerformanceSpan.h>
|
|
5
5
|
#import <BugsnagPerformance/BugsnagPerformanceSpanCondition.h>
|
|
6
6
|
#import <BugsnagPerformance/BugsnagPerformanceSpanContext.h>
|
|
7
|
+
#import <BugsnagReactNativePerformance/BugsnagPerformanceAppStartRegistry.h>
|
|
7
8
|
|
|
8
9
|
static const NSTimeInterval kDefaultSpanBlockTimeoutInterval = 5; // 5s default timeout
|
|
9
10
|
|
|
@@ -22,8 +23,6 @@ static const NSTimeInterval kDefaultSpanBlockTimeoutInterval = 5; // 5s default
|
|
|
22
23
|
|
|
23
24
|
@implementation BugsnagReactNativeAppStartPlugin
|
|
24
25
|
|
|
25
|
-
static BugsnagReactNativeAppStartPlugin *_sharedInstance = nil;
|
|
26
|
-
|
|
27
26
|
- (instancetype)init {
|
|
28
27
|
return [self initWithTimeout:kDefaultSpanBlockTimeoutInterval];
|
|
29
28
|
}
|
|
@@ -35,12 +34,9 @@ static BugsnagReactNativeAppStartPlugin *_sharedInstance = nil;
|
|
|
35
34
|
return self;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
+ (id)singleton {
|
|
39
|
-
return _sharedInstance;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
37
|
- (void)installWithContext:(BugsnagPerformancePluginContext *)context {
|
|
43
|
-
|
|
38
|
+
// Register this plugin as the AppStartProvider with the core React Native Performance module
|
|
39
|
+
[BugsnagPerformanceAppStartRegistry registerProvider:self];
|
|
44
40
|
__weak BugsnagReactNativeAppStartPlugin *weakSelf = self;
|
|
45
41
|
|
|
46
42
|
// Add span start callback with high priority (equivalent to NORM_PRIORITY + 1)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bugsnag/plugin-react-native-span-access",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "BugSnag performance monitoring for react-native",
|
|
5
5
|
"homepage": "https://www.bugsnag.com/",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@bugsnag/core-performance": "^3.2.0",
|
|
27
|
-
"@bugsnag/react-native-performance": "^3.4.
|
|
27
|
+
"@bugsnag/react-native-performance": "^3.4.1",
|
|
28
28
|
"@react-native/babel-preset": "^0.74.0",
|
|
29
29
|
"@testing-library/jest-native": "^5.4.3",
|
|
30
30
|
"@testing-library/react-native": "^12.4.1"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"javaPackageName": "com.bugsnag.reactnative.performance.nativespans"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "24b03e940681936df464f464e1cb5990ac302987"
|
|
52
52
|
}
|