@nativescript-community/sentry 4.6.21 → 4.6.24
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.
- package/breadcrumb.d.ts +1 -1
- package/breadcrumb.js.map +1 -1
- package/client.d.ts +23 -23
- package/client.js +49 -51
- package/client.js.map +1 -1
- package/index.d.ts +7 -7
- package/index.js +6 -6
- package/index.js.map +1 -1
- package/integrations/debugsymbolicator.d.ts +4 -4
- package/integrations/debugsymbolicator.js +13 -11
- package/integrations/debugsymbolicator.js.map +1 -1
- package/integrations/default.js +21 -22
- package/integrations/default.js.map +1 -1
- package/integrations/devicecontext.js +11 -11
- package/integrations/devicecontext.js.map +1 -1
- package/integrations/eventorigin.js +1 -2
- package/integrations/eventorigin.js.map +1 -1
- package/integrations/factory.js.map +1 -1
- package/integrations/index.js.map +1 -1
- package/integrations/nativescripterrorhandlers.d.ts +8 -8
- package/integrations/nativescripterrorhandlers.js +7 -3
- package/integrations/nativescripterrorhandlers.js.map +1 -1
- package/integrations/release.js +5 -6
- package/integrations/release.js.map +1 -1
- package/integrations/rewriteframe.js.map +1 -1
- package/integrations/screenshot.d.ts +8 -8
- package/integrations/screenshot.js +10 -13
- package/integrations/screenshot.js.map +1 -1
- package/integrations/sdkinfo.d.ts +7 -7
- package/integrations/sdkinfo.js +15 -16
- package/integrations/sdkinfo.js.map +1 -1
- package/measurements.js.map +1 -1
- package/misc.d.ts +4 -4
- package/misc.js +5 -8
- package/misc.js.map +1 -1
- package/options.d.ts +66 -62
- package/options.js.map +1 -1
- package/package.json +9 -9
- package/platforms/android/buildscript.gradle +1 -1
- package/platforms/android/include.gradle +1 -1
- package/platforms/android/native-api-usage.json +8 -0
- package/process.js.map +1 -1
- package/references.d.ts +6 -0
- package/scope.js.map +1 -1
- package/sdk.d.ts +3 -3
- package/sdk.js +26 -18
- package/sdk.js.map +1 -1
- package/tracing/addTracingExtensions.d.ts +1 -1
- package/tracing/addTracingExtensions.js +6 -4
- package/tracing/addTracingExtensions.js.map +1 -1
- package/tracing/index.js.map +1 -1
- package/tracing/nativeframes.d.ts +22 -22
- package/tracing/nativeframes.js +30 -34
- package/tracing/nativeframes.js.map +1 -1
- package/tracing/nstracing.d.ts +1 -1
- package/tracing/nstracing.js +42 -26
- package/tracing/nstracing.js.map +1 -1
- package/tracing/ops.js.map +1 -1
- package/tracing/routingInstrumentation.d.ts +2 -2
- package/tracing/routingInstrumentation.js +3 -5
- package/tracing/routingInstrumentation.js.map +1 -1
- package/tracing/stalltracking.js +16 -9
- package/tracing/stalltracking.js.map +1 -1
- package/tracing/transaction.js.map +1 -1
- package/tracing/types.d.ts +1 -1
- package/tracing/types.js.map +1 -1
- package/tracing/utils.js.map +1 -1
- package/transports/TextEncoder.js.map +1 -1
- package/transports/native.d.ts +1 -1
- package/transports/native.js.map +1 -1
- package/typings/android.d.ts +10738 -0
- package/typings/ios.d.ts +2255 -0
- package/typings/ns.ios.d.ts +25 -0
- package/utils/envelope.js +9 -4
- package/utils/envelope.js.map +1 -1
- package/utils/environment.js.map +1 -1
- package/utils/outcome.js.map +1 -1
- package/utils/safe.d.ts +1 -1
- package/utils/safe.js.map +1 -1
- package/vendor/buffer/index.js.map +1 -1
- package/vendor/buffer/utf8ToBytes.js.map +1 -1
- package/vendor/index.js.map +1 -1
- package/version.js.map +1 -1
- package/wrapper.android.d.ts +5 -2
- package/wrapper.android.js +121 -78
- package/wrapper.android.js.map +1 -1
- package/wrapper.d.ts +2 -4
- package/wrapper.ios.d.ts +3 -3
- package/wrapper.ios.js +48 -44
- package/wrapper.ios.js.map +1 -1
package/options.d.ts
CHANGED
@@ -7,28 +7,32 @@ import { NativescriptErrorHandlersOptions } from './integrations/nativescripterr
|
|
7
7
|
*/
|
8
8
|
export interface BaseNativescriptOptions {
|
9
9
|
/**
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
* Enables native transport + device info + offline caching.
|
11
|
+
* Be careful, disabling this also breaks automatic release setting.
|
12
|
+
* This means you have to manage setting the release yourself.
|
13
|
+
* Defaults to `true`.
|
14
|
+
*/
|
15
15
|
enableNative?: boolean;
|
16
16
|
/**
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
* Enables native crashHandling. This only works if `enableNative` is `true`.
|
18
|
+
* Defaults to `true`.
|
19
|
+
*/
|
20
20
|
enableNativeCrashHandling?: boolean;
|
21
21
|
/**
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
22
|
+
* native integrations to disable.
|
23
|
+
*/
|
24
|
+
disabledNativeIntegrations?: string[];
|
25
|
+
/**
|
26
|
+
* Initializes the native SDK on init.
|
27
|
+
* Set this to `false` if you have an existing native SDK and don't want to re-initialize.
|
28
|
+
*
|
29
|
+
* NOTE: Be careful and only use this if you know what you are doing.
|
30
|
+
* If you use this flag, make sure a native SDK is running before the JS Engine initializes or events might not be captured.
|
31
|
+
* Also, make sure the DSN on both the React Native side and the native side are the same one.
|
32
|
+
* We strongly recommend checking the documentation if you need to use this.
|
33
|
+
*
|
34
|
+
* @default true
|
35
|
+
*/
|
32
36
|
autoInitializeNativeSdk?: boolean;
|
33
37
|
/** Should the native nagger alert be shown or not. */
|
34
38
|
enableNativeNagger?: boolean;
|
@@ -37,25 +41,25 @@ export interface BaseNativescriptOptions {
|
|
37
41
|
/** The interval to end a session if the App goes to the background. */
|
38
42
|
sessionTrackingIntervalMillis?: number;
|
39
43
|
/** Enable NDK on Android
|
40
|
-
|
41
|
-
|
42
|
-
|
44
|
+
*
|
45
|
+
* @default true
|
46
|
+
*/
|
43
47
|
enableNdk?: boolean;
|
44
48
|
/** Enable scope sync from Java to NDK on Android
|
45
|
-
|
46
|
-
|
49
|
+
* Only has an effect if `enableNdk` is `true`.
|
50
|
+
*/
|
47
51
|
enableNdkScopeSync?: boolean;
|
48
52
|
/** When enabled, all the threads are automatically attached to all logged events on Android */
|
49
53
|
attachThreads?: boolean;
|
50
54
|
/**
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
+
* When enabled, certain personally identifiable information (PII) is added by active integrations.
|
56
|
+
*
|
57
|
+
* @default false
|
58
|
+
*/
|
55
59
|
sendDefaultPii?: boolean;
|
56
60
|
/**
|
57
|
-
|
58
|
-
|
61
|
+
* Callback that is called after the RN SDK on the JS Layer has made contact with the Native Layer.
|
62
|
+
*/
|
59
63
|
onReady?: (response: {
|
60
64
|
/** `true` if the native SDK has been initialized, `false` otherwise. */
|
61
65
|
didCallNativeInit: boolean;
|
@@ -63,44 +67,44 @@ export interface BaseNativescriptOptions {
|
|
63
67
|
/** Enable auto performance tracking by default. */
|
64
68
|
enableAutoPerformanceTracking?: boolean;
|
65
69
|
/**
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
* Enables Out of Memory Tracking for iOS and macCatalyst.
|
71
|
+
* See the following link for more information and possible restrictions:
|
72
|
+
* https://docs.sentry.io/platforms/apple/guides/ios/configuration/out-of-memory/
|
73
|
+
*
|
74
|
+
* Renamed from `enableOutOfMemoryTracking` in v5.
|
75
|
+
*
|
76
|
+
* @default true
|
77
|
+
*/
|
74
78
|
enableWatchdogTerminationTracking?: boolean;
|
75
79
|
/**
|
76
80
|
* Set data to the inital scope
|
77
81
|
* @deprecated Use `Sentry.configureScope(...)`
|
78
82
|
*/
|
79
83
|
/**
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
+
* The max cache items for capping the number of envelopes.
|
85
|
+
*
|
86
|
+
* @default 30
|
87
|
+
*/
|
84
88
|
maxCacheItems?: number;
|
85
89
|
/**
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
90
|
+
* When enabled, the SDK tracks when the application stops responding for a specific amount of
|
91
|
+
* time defined by the `appHangTimeoutInterval` option.
|
92
|
+
*
|
93
|
+
* iOS only
|
94
|
+
*
|
95
|
+
* @default true
|
96
|
+
*/
|
93
97
|
enableAppHangTracking?: boolean;
|
94
98
|
/**
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
99
|
+
* The minimum amount of time an app should be unresponsive to be classified as an App Hanging.
|
100
|
+
* The actual amount may be a little longer.
|
101
|
+
* Avoid using values lower than 100ms, which may cause a lot of app hangs events being transmitted.
|
102
|
+
* Value should be in seconds.
|
103
|
+
*
|
104
|
+
* iOS only
|
105
|
+
*
|
106
|
+
* @default 2
|
107
|
+
*/
|
104
108
|
appHangsTimeoutInterval?: number;
|
105
109
|
/**
|
106
110
|
* The max queue size for capping the number of envelopes waiting to be sent by Transport.
|
@@ -112,10 +116,10 @@ export interface BaseNativescriptOptions {
|
|
112
116
|
colnoOffset?: number;
|
113
117
|
[k: string]: any;
|
114
118
|
/**
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
+
* When enabled and a user experiences an error, Sentry provides the ability to take a screenshot and include it as an attachment.
|
120
|
+
*
|
121
|
+
* @default false
|
122
|
+
*/
|
119
123
|
attachScreenshot?: boolean;
|
120
124
|
/**
|
121
125
|
* When enabled Sentry includes the current view hierarchy in the error attachments.
|
@@ -154,7 +158,7 @@ export interface BaseNativescriptOptions {
|
|
154
158
|
export interface ReactNativeTransportOptions extends BrowserTransportOptions {
|
155
159
|
/**
|
156
160
|
* @deprecated use `maxQueueSize` in the root of the SDK options.
|
157
|
-
|
161
|
+
*/
|
158
162
|
bufferSize?: number;
|
159
163
|
}
|
160
164
|
/**
|
package/options.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/sentry/options.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/sentry",
|
3
|
-
"version": "4.6.
|
3
|
+
"version": "4.6.24",
|
4
4
|
"description": "A cross-platform application monitoring tool, with a focus on error reporting.",
|
5
5
|
"main": "./index",
|
6
6
|
"typings": "./index.d.ts",
|
@@ -33,14 +33,14 @@
|
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"@nativescript-community/arraybuffers": "^1.1.5",
|
36
|
-
"@sentry/browser": "^7.
|
37
|
-
"@sentry/core": "^7.
|
38
|
-
"@sentry/hub": "^7.
|
39
|
-
"@sentry/integrations": "^7.
|
40
|
-
"@sentry/tracing": "^7.
|
41
|
-
"@sentry/types": "^7.
|
42
|
-
"@sentry/utils": "^7.
|
36
|
+
"@sentry/browser": "^7.102.1",
|
37
|
+
"@sentry/core": "^7.102.1",
|
38
|
+
"@sentry/hub": "^7.102.1",
|
39
|
+
"@sentry/integrations": "^7.102.1",
|
40
|
+
"@sentry/tracing": "^7.102.1",
|
41
|
+
"@sentry/types": "^7.102.1",
|
42
|
+
"@sentry/utils": "^7.102.1",
|
43
43
|
"stacktrace-parser": "^0.1.10"
|
44
44
|
},
|
45
|
-
"gitHead": "
|
45
|
+
"gitHead": "64b95aad665d72a47606193f45eee51de250af97"
|
46
46
|
}
|
@@ -4,7 +4,7 @@ repositories {
|
|
4
4
|
mavenCentral()
|
5
5
|
}
|
6
6
|
dependencies {
|
7
|
-
def sentryGradleVersion = hasProperty("sentryGradleVersion") ? sentryGradleVersion : "4.
|
7
|
+
def sentryGradleVersion = hasProperty("sentryGradleVersion") ? sentryGradleVersion : "4.3.0"
|
8
8
|
println "sentryGradleVersion $sentryGradleVersion"
|
9
9
|
classpath "io.sentry:sentry-android-gradle-plugin:$sentryGradleVersion"
|
10
10
|
}
|
@@ -7,7 +7,7 @@ android {
|
|
7
7
|
}
|
8
8
|
}
|
9
9
|
dependencies {
|
10
|
-
def sentryVersion = project.hasProperty("sentryVersion") ? project.sentryVersion : "7.
|
10
|
+
def sentryVersion = project.hasProperty("sentryVersion") ? project.sentryVersion : "7.4.0"
|
11
11
|
println("sentryVersion $sentryVersion")
|
12
12
|
implementation "io.sentry:sentry-android:$sentryVersion"
|
13
13
|
}
|
@@ -1,13 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"uses": [
|
3
|
+
"androidx.core.app:FrameMetricsAggregator",
|
3
4
|
"io.sentry.android.core.internal.util:ScreenshotUtils",
|
4
5
|
"io.sentry.android.core:AndroidLogger",
|
5
6
|
"io.sentry.android.core:AnrIntegration",
|
6
7
|
"io.sentry.android.core:AppStartState",
|
7
8
|
"io.sentry.android.core:BuildInfoProvider",
|
9
|
+
"io.sentry.android.core:InternalSentrySdk",
|
8
10
|
"io.sentry.android.core:CurrentActivityHolder",
|
9
11
|
"io.sentry.android.core:NdkIntegration",
|
10
12
|
"io.sentry.android.core:SentryAndroid",
|
13
|
+
"io.sentry.android.core:SentryAndroidOptions",
|
11
14
|
"io.sentry.exception:ExceptionMechanismException",
|
12
15
|
"io.sentry.protocol:Message",
|
13
16
|
"io.sentry.protocol:SdkVersion",
|
@@ -21,7 +24,10 @@
|
|
21
24
|
"io.sentry.transport:ITransportGate",
|
22
25
|
"io.sentry.transport:RateLimiter",
|
23
26
|
"io.sentry:Breadcrumb",
|
27
|
+
"io.sentry:HubAdapter",
|
28
|
+
"io.sentry:Integration",
|
24
29
|
"io.sentry:ILogger",
|
30
|
+
"io.sentry:IScope",
|
25
31
|
"io.sentry:ITransportFactory",
|
26
32
|
"io.sentry:RequestDetails",
|
27
33
|
"io.sentry:ScopeCallback",
|
@@ -35,12 +41,14 @@
|
|
35
41
|
"io.sentry:SentryOptions.BeforeSendCallback",
|
36
42
|
"io.sentry:UncaughtExceptionHandlerIntegration",
|
37
43
|
"io.sentry:UserFeedback",
|
44
|
+
"io.sentry.android.fragment:FragmentLifecycleIntegration",
|
38
45
|
"java.lang:Boolean",
|
39
46
|
"java.lang:Integer",
|
40
47
|
"java.lang:Long",
|
41
48
|
"java.lang:Thread",
|
42
49
|
"java.nio.charset:Charset",
|
43
50
|
"java.nio:CharBuffer",
|
51
|
+
"java.util:Collection",
|
44
52
|
"java.util:Map",
|
45
53
|
"java.util:UUID"
|
46
54
|
]
|
package/process.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"process.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"process.js","sourceRoot":"","sources":["../../src/sentry/process.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO;CAAG;AAChB,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;AAElD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,GAAG,IAAI,OAAO,EAAS,CAAC"}
|
package/references.d.ts
ADDED
package/scope.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scope.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../../src/sentry/scope.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,MAAM,OAAO,GAAG,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;;AAEnD,uBAAuB;AACvB,4DAA4D;AAC5D,+CAA+C;AAC/C,8BAA8B;AAC9B,qDAAqD;AACrD,SAAS;AACT,MAAM;AAEN,iDAAiD;AACjD,UAAU;AACV,mBAAmB;AACnB,QAAQ;AACR,gDAAgD;AAChD,gCAAgC;AAChC,sCAAsC;AACtC,QAAQ;AAER,UAAU;AACV,mBAAmB;AACnB,QAAQ;AACR,wDAAwD;AACxD,qCAAqC;AACrC,2CAA2C;AAC3C,QAAQ;AAER,UAAU;AACV,mBAAmB;AACnB,QAAQ;AACR,8DAA8D;AAC9D,uEAAuE;AACvE,+CAA+C;AAC/C,6CAA6C;AAC7C,cAAc;AACd,sCAAsC;AACtC,QAAQ;AAER,UAAU;AACV,mBAAmB;AACnB,QAAQ;AACR,qEAAqE;AACrE,+DAA+D;AAC/D,iDAAiD;AACjD,iDAAiD;AACjD,cAAc;AACd,0CAA0C;AAC1C,QAAQ;AAER,UAAU;AACV,mBAAmB;AACnB,QAAQ;AACR,uHAAuH;AACvH,uDAAuD;AACvD,uCAAuC;AACvC,6CAA6C;AAC7C,QAAQ;AAER,UAAU;AACV,mBAAmB;AACnB,QAAQ;AACR,oFAAoF;AACpF,4CAA4C;AAC5C,kEAAkE;AAClE,QAAQ;AAER,UAAU;AACV,mBAAmB;AACnB,QAAQ;AACR,wCAAwC;AACxC,qCAAqC;AACrC,2CAA2C;AAC3C,QAAQ;AAER,UAAU;AACV,mBAAmB;AACnB,QAAQ;AACR,qEAAqE;AACrE,qFAAqF;AACrF,2CAA2C;AAC3C,uBAAuB;AACvB,oDAAoD;AACpD,QAAQ;AAER,UAAU;AACV,mBAAmB;AACnB,QAAQ;AACR,2DAA2D;AAC3D,yDAAyD;AACzD,4CAA4C;AAC5C,kDAAkD;AAClD,QAAQ;AAER,UAAU;AACV,kBAAkB;AAClB,OAAO;AACP,wCAAwC;AACxC,2CAA2C;AAC3C,QAAQ;AACR,IAAI"}
|
package/sdk.d.ts
CHANGED
@@ -47,7 +47,7 @@ export declare function captureUserFeedback(feedback: UserFeedback): void;
|
|
47
47
|
*/
|
48
48
|
export declare function withScope(callback: (scope: Scope) => void): ReturnType<Hub['withScope']>;
|
49
49
|
/**
|
50
|
-
|
51
|
-
|
52
|
-
|
50
|
+
* Callback to set context information onto the scope.
|
51
|
+
* @param callback Callback function that receives Scope.
|
52
|
+
*/
|
53
53
|
export declare function configureScope(callback: (scope: Scope) => void): ReturnType<Hub['configureScope']>;
|
package/sdk.js
CHANGED
@@ -56,7 +56,7 @@ const DEFAULT_OPTIONS = {
|
|
56
56
|
enableOutOfMemoryTracking: true,
|
57
57
|
patchGlobalPromise: true,
|
58
58
|
transportOptions: {
|
59
|
-
textEncoder: makeUtf8TextEncoder()
|
59
|
+
textEncoder: makeUtf8TextEncoder()
|
60
60
|
},
|
61
61
|
sendClientReports: true,
|
62
62
|
maxQueueSize: DEFAULT_BUFFER_SIZE,
|
@@ -66,16 +66,27 @@ const DEFAULT_OPTIONS = {
|
|
66
66
|
* Inits the SDK
|
67
67
|
*/
|
68
68
|
export function init(passedOptions) {
|
69
|
-
var _a, _b, _c, _d;
|
70
69
|
const NativescriptHub = new Hub(undefined, new Scope());
|
71
70
|
// const NativescriptHub = new Hub(undefined, new NativescriptScope());
|
72
71
|
makeMain(NativescriptHub);
|
73
|
-
const maxQueueSize =
|
74
|
-
const options =
|
72
|
+
const maxQueueSize = passedOptions.maxQueueSize ?? passedOptions.transportOptions?.bufferSize ?? DEFAULT_OPTIONS.maxQueueSize;
|
73
|
+
const options = {
|
74
|
+
...DEFAULT_OPTIONS,
|
75
|
+
...passedOptions,
|
75
76
|
// If custom transport factory fails the SDK won't initialize
|
76
|
-
transport: passedOptions.transport || makeNativescriptTransport,
|
77
|
+
transport: passedOptions.transport || makeNativescriptTransport,
|
78
|
+
transportOptions: {
|
79
|
+
...DEFAULT_OPTIONS.transportOptions,
|
80
|
+
...(passedOptions.transportOptions ?? {}),
|
81
|
+
bufferSize: maxQueueSize
|
82
|
+
},
|
83
|
+
maxQueueSize,
|
84
|
+
integrations: [],
|
77
85
|
// integrations: getIntegrationsToSetup(passedOptions),
|
78
|
-
stackParser: stackParserFromStackParserOptions(passedOptions.stackParser || defaultStackParser),
|
86
|
+
stackParser: stackParserFromStackParserOptions(passedOptions.stackParser || defaultStackParser),
|
87
|
+
beforeBreadcrumb: safeFactory(passedOptions.beforeBreadcrumb, { loggerMessage: 'The beforeBreadcrumb threw an error' }),
|
88
|
+
initialScope: safeFactory(passedOptions.initialScope, { loggerMessage: 'The initialScope threw an error' })
|
89
|
+
};
|
79
90
|
if ('tracesSampler' in options) {
|
80
91
|
options.tracesSampler = safeTracesSampler(options.tracesSampler);
|
81
92
|
}
|
@@ -83,11 +94,9 @@ export function init(passedOptions) {
|
|
83
94
|
options.environment = getDefaultEnvironment();
|
84
95
|
}
|
85
96
|
// As long as tracing is opt in with either one of these options, then this is how we determine tracing is enabled.
|
86
|
-
const tracingEnabled = typeof options.tracesSampler !== 'undefined' ||
|
87
|
-
|
88
|
-
const defaultIntegrations = passedOptions.defaultIntegrations === undefined
|
89
|
-
? getDefaultIntegrations(options)
|
90
|
-
: passedOptions.defaultIntegrations;
|
97
|
+
const tracingEnabled = typeof options.tracesSampler !== 'undefined' || typeof options.tracesSampleRate !== 'undefined';
|
98
|
+
const DEFAULT_INTEGRATIONS = getDefaultIntegrations(options);
|
99
|
+
const defaultIntegrations = passedOptions.defaultIntegrations === undefined ? DEFAULT_INTEGRATIONS : passedOptions.defaultIntegrations;
|
91
100
|
// if (passedOptions.defaultIntegrations === undefined) {
|
92
101
|
// rewriteFrameIntegration = new RewriteFrames({
|
93
102
|
// iteratee: (frame: StackFrame) => {
|
@@ -142,7 +151,7 @@ export function init(passedOptions) {
|
|
142
151
|
// }
|
143
152
|
options.integrations = getIntegrationsToSetup({
|
144
153
|
integrations: safeFactory(passedOptions.integrations, { loggerMessage: 'The integrations threw an error' }),
|
145
|
-
defaultIntegrations
|
154
|
+
defaultIntegrations
|
146
155
|
});
|
147
156
|
initAndBind(NativescriptClient, options);
|
148
157
|
}
|
@@ -204,8 +213,7 @@ export async function close() {
|
|
204
213
|
* Captures user feedback and sends it to Sentry.
|
205
214
|
*/
|
206
215
|
export function captureUserFeedback(feedback) {
|
207
|
-
|
208
|
-
(_a = getCurrentHub().getClient()) === null || _a === void 0 ? void 0 : _a.captureUserFeedback(feedback);
|
216
|
+
getCurrentHub().getClient()?.captureUserFeedback(feedback);
|
209
217
|
}
|
210
218
|
/**
|
211
219
|
* Creates a new scope with and executes the given operation within.
|
@@ -223,7 +231,7 @@ export function captureUserFeedback(feedback) {
|
|
223
231
|
export function withScope(callback) {
|
224
232
|
const safeCallback = (scope) => {
|
225
233
|
try {
|
226
|
-
NATIVE.withScope(nscope => {
|
234
|
+
NATIVE.withScope((nscope) => {
|
227
235
|
callback(scope);
|
228
236
|
});
|
229
237
|
}
|
@@ -234,9 +242,9 @@ export function withScope(callback) {
|
|
234
242
|
return getCurrentHub().withScope(safeCallback);
|
235
243
|
}
|
236
244
|
/**
|
237
|
-
|
238
|
-
|
239
|
-
|
245
|
+
* Callback to set context information onto the scope.
|
246
|
+
* @param callback Callback function that receives Scope.
|
247
|
+
*/
|
240
248
|
export function configureScope(callback) {
|
241
249
|
const safeCallback = (scope) => {
|
242
250
|
try {
|
package/sdk.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/sentry/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,aAAa,EAAoD,MAAM,iBAAiB,CAAC;AAChH,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,sBAAsB,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGnG,OAAO,EAAE,MAAM,EAAE,iCAAiC,EAAE,MAAM,eAAe,CAAC;AAI1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAK9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,+BAA+B;AAC/B,gDAAgD;AAChD,2BAA2B;AAC3B,qBAAqB;AACrB,QAAQ;AAER,8BAA8B;AAE9B,+DAA+D;AAC/D,kFAAkF;AAElF,0HAA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,CAAC,CAAC,CAAC;SAC7D;IACL,CAAC,CAAC;IACF,OAAO,aAAa,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;AACnD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,QAAgC;IAC3D,MAAM,YAAY,GAAG,CAAC,KAAY,EAAQ,EAAE;QACxC,IAAI;YACA,QAAQ,CAAC,KAAK,CAAC,CAAC;SACnB;QAAC,OAAO,CAAC,EAAE;YACR,MAAM,CAAC,KAAK,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC;SAClE;IACL,CAAC,CAAC;IACF,aAAa,EAAE,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;AACjD,CAAC"}
|
@@ -4,4 +4,4 @@ import type { CustomSamplingContext, TransactionContext } from '@sentry/types';
|
|
4
4
|
* Adds React Native's extensions. Needs to be called before any transactions are created.
|
5
5
|
*/
|
6
6
|
export declare function _addTracingExtensions(): void;
|
7
|
-
export
|
7
|
+
export type StartTransactionFunction = (this: Hub, transactionContext: TransactionContext, customSamplingContext?: CustomSamplingContext) => Transaction;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// eslint-disable-next-line no-duplicate-imports
|
2
2
|
import { addTracingExtensions, getCurrentHub, getMainCarrier } from '@sentry/core';
|
3
|
-
import { NativescriptTracing } from '
|
4
|
-
import { DEFAULT } from '
|
3
|
+
import { NativescriptTracing } from './nstracing';
|
4
|
+
import { DEFAULT } from './ops';
|
5
5
|
/**
|
6
6
|
* Adds React Native's extensions. Needs to be called before any transactions are created.
|
7
7
|
*/
|
@@ -35,9 +35,11 @@ const _patchStartTransaction = (originalStartTransaction) => {
|
|
35
35
|
}
|
36
36
|
const transaction = originalStartTransaction.apply(this, [transactionContext, customSamplingContext]);
|
37
37
|
const originalStartChild = transaction.startChild.bind(transaction);
|
38
|
-
transaction.startChild = (spanContext) => originalStartChild(
|
38
|
+
transaction.startChild = (spanContext) => originalStartChild({
|
39
|
+
...spanContext,
|
39
40
|
// Native SDKs require op to be set
|
40
|
-
op:
|
41
|
+
op: spanContext?.op || DEFAULT,
|
42
|
+
});
|
41
43
|
const reactNativeTracing = getCurrentHub().getIntegration(NativescriptTracing);
|
42
44
|
if (reactNativeTracing) {
|
43
45
|
reactNativeTracing.onTransactionStart(transaction);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"addTracingExtensions.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"addTracingExtensions.js","sourceRoot":"","sources":["../../../src/sentry/tracing/addTracingExtensions.ts"],"names":[],"mappings":"AACA,gDAAgD;AAChD,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC;;GAEG;AACH,MAAM,UAAU,qBAAqB;IACjC,oBAAoB,EAAE,CAAC;IACvB,MAAM,OAAO,GAAG,cAAc,EAAE,CAAC;IACjC,IAAI,OAAO,CAAC,UAAU,EAAE;QACpB,OAAO,CAAC,UAAU,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,IAAI,EAAE,CAAC;QACpE,IAAI,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,gBAAgB,EAAE;YAChD,MAAM,wBAAwB,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,gBAA4C,CAAC;YAE5G;;;QAGJ;YACI,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,wBAAwB,CAAC,CAAC;YAE3E,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,gBAAgB,GAAG,iBAAiB,CAAC;SACtE;KACJ;AACL,CAAC;AAQD;;GAEG;AACH,MAAM,sBAAsB,GAAG,CAAC,wBAAkD,EAA4B,EAAE;IAC5G;;KAEC;IACD,SAAS,iBAAiB,CAEtB,kBAAsC,EACtC,qBAA6C;QAEjD,iEAAiE;QAC7D,IAAI,CAAC,kBAAkB,CAAC,EAAE,EAAE;YACxB,kBAAkB,CAAC,EAAE,GAAG,OAAO,CAAC;SACnC;QAED,MAAM,WAAW,GAAgB,wBAAwB,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,CAAC,CAAC;QACnH,MAAM,kBAAkB,GAA8B,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC/F,WAAW,CAAC,UAAU,GAAG,CACrB,WAAmG,EAC/F,EAAE,CAAC,kBAAkB,CAAC;YAC1B,GAAG,WAAW;YACd,mCAAmC;YACnC,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,OAAO;SACjC,CAAC,CAAC;QAEH,MAAM,kBAAkB,GAAG,aAAa,EAAE,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;QAE/E,IAAI,kBAAkB,EAAE;YACpB,kBAAkB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;YAEnD,6DAA6D;YAC7D,MAAM,cAAc,GAAG,WAAW,CAAC,MAAM,CAAC;YAE1C,WAAW,CAAC,MAAM,GAAG,CAAC,YAAgC,EAAE,EAAE;gBACtD,IAAI,kBAAkB,EAAE;oBACpB,kBAAkB,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;iBACvD;gBAED,OAAO,cAAc,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;YAC7D,CAAC,CAAC;SACL;QAED,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC7B,CAAC,CAAC"}
|
package/tracing/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sentry/tracing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EACH,sBAAsB,GAEzB,MAAM,0BAA0B,CAAC;AAElC,WAAW;AACX,sCAAsC;AACtC,0DAA0D;AAC1D,wCAAwC;AACxC,8BAA8B;AAC9B,0EAA0E;AAC1E,mFAAmF;AAEnF,WAAW;AACX,mCAAmC;AACnC,4BAA4B;AAC5B,yCAAyC;AACzC,oBAAoB;AAEpB,gEAAgE"}
|
@@ -6,15 +6,15 @@ export interface NativeFramesResponse {
|
|
6
6
|
frozenFrames: number;
|
7
7
|
}
|
8
8
|
export interface FramesMeasurements extends Measurements {
|
9
|
-
|
9
|
+
frames_total: {
|
10
10
|
value: number;
|
11
11
|
unit: MeasurementUnit;
|
12
12
|
};
|
13
|
-
|
13
|
+
frames_slow: {
|
14
14
|
value: number;
|
15
15
|
unit: MeasurementUnit;
|
16
16
|
};
|
17
|
-
|
17
|
+
frames_frozen: {
|
18
18
|
value: number;
|
19
19
|
unit: MeasurementUnit;
|
20
20
|
};
|
@@ -31,38 +31,38 @@ export declare class NativeFramesInstrumentation {
|
|
31
31
|
private _lastSpanFinishFrames?;
|
32
32
|
constructor(addGlobalEventProcessor: (e: EventProcessor) => void, doesExist: () => boolean);
|
33
33
|
/**
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
* To be called when a transaction is started.
|
35
|
+
* Logs the native frames at this start point and instruments child span finishes.
|
36
|
+
*/
|
37
37
|
onTransactionStart(transaction: Transaction): void;
|
38
38
|
/**
|
39
|
-
|
40
|
-
|
39
|
+
* To be called when a transaction is finished
|
40
|
+
*/
|
41
41
|
onTransactionFinish(transaction: Transaction): void;
|
42
42
|
/**
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
* Called on a span finish to fetch native frames to support transactions with trimEnd.
|
44
|
+
* Only to be called when a span does not have an end timestamp.
|
45
|
+
*/
|
46
46
|
private _onSpanFinish;
|
47
47
|
/**
|
48
|
-
|
49
|
-
|
48
|
+
* Returns the computed frames measurements and awaits for them if they are not ready yet.
|
49
|
+
*/
|
50
50
|
private _getFramesMeasurements;
|
51
51
|
/**
|
52
|
-
|
53
|
-
|
52
|
+
* Returns the computed frames measurements given ready data
|
53
|
+
*/
|
54
54
|
private _prepareMeasurements;
|
55
55
|
/**
|
56
|
-
|
57
|
-
|
56
|
+
* Fetch finish frames for a transaction at the current time. Calls any awaiting listeners.
|
57
|
+
*/
|
58
58
|
private _fetchFramesForTransaction;
|
59
59
|
/**
|
60
|
-
|
61
|
-
|
60
|
+
* On a finish frames failure, we cancel the await.
|
61
|
+
*/
|
62
62
|
private _cancelFinishFrames;
|
63
63
|
/**
|
64
|
-
|
65
|
-
|
66
|
-
|
64
|
+
* Adds frames measurements to an event. Called from a valid event processor.
|
65
|
+
* Awaits for finish frames if needed.
|
66
|
+
*/
|
67
67
|
private _processEvent;
|
68
68
|
}
|