@sentry/react-native 5.23.0-alpha.0 → 5.23.0
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/CHANGELOG.md +62 -18
- package/LICENSE.md +1 -1
- package/RNSentry.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +1 -54
- package/android/src/newarch/java/io/sentry/react/RNSentryModule.java +0 -10
- package/android/src/oldarch/java/io/sentry/react/RNSentryModule.java +0 -10
- package/dist/js/NativeRNSentry.d.ts +0 -2
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/NativeRNSentry.js.map +1 -1
- package/dist/js/client.d.ts +0 -8
- package/dist/js/client.d.ts.map +1 -1
- package/dist/js/client.js +4 -20
- package/dist/js/client.js.map +1 -1
- package/dist/js/index.d.ts +5 -3
- package/dist/js/index.d.ts.map +1 -1
- package/dist/js/index.js +5 -3
- package/dist/js/index.js.map +1 -1
- package/dist/js/integrations/debugsymbolicator.d.ts +8 -60
- package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
- package/dist/js/integrations/debugsymbolicator.js +137 -209
- package/dist/js/integrations/debugsymbolicator.js.map +1 -1
- package/dist/js/integrations/debugsymbolicatorutils.d.ts +18 -0
- package/dist/js/integrations/debugsymbolicatorutils.d.ts.map +1 -0
- package/dist/js/integrations/debugsymbolicatorutils.js +70 -0
- package/dist/js/integrations/debugsymbolicatorutils.js.map +1 -0
- package/dist/js/integrations/default.d.ts.map +1 -1
- package/dist/js/integrations/default.js +24 -49
- package/dist/js/integrations/default.js.map +1 -1
- package/dist/js/integrations/devicecontext.d.ts +8 -15
- package/dist/js/integrations/devicecontext.d.ts.map +1 -1
- package/dist/js/integrations/devicecontext.js +74 -74
- package/dist/js/integrations/devicecontext.js.map +1 -1
- package/dist/js/integrations/eventorigin.d.ts +8 -15
- package/dist/js/integrations/eventorigin.d.ts.map +1 -1
- package/dist/js/integrations/eventorigin.js +17 -17
- package/dist/js/integrations/eventorigin.js.map +1 -1
- package/dist/js/integrations/expocontext.d.ts +8 -15
- package/dist/js/integrations/expocontext.d.ts.map +1 -1
- package/dist/js/integrations/expocontext.js +28 -32
- package/dist/js/integrations/expocontext.js.map +1 -1
- package/dist/js/integrations/exports.d.ts +16 -0
- package/dist/js/integrations/exports.d.ts.map +1 -0
- package/dist/js/integrations/exports.js +16 -0
- package/dist/js/integrations/exports.js.map +1 -0
- package/dist/js/integrations/index.d.ts +4 -1
- package/dist/js/integrations/index.d.ts.map +1 -1
- package/dist/js/integrations/index.js +5 -1
- package/dist/js/integrations/index.js.map +1 -1
- package/dist/js/integrations/modulesloader.d.ts +8 -15
- package/dist/js/integrations/modulesloader.d.ts.map +1 -1
- package/dist/js/integrations/modulesloader.js +34 -31
- package/dist/js/integrations/modulesloader.js.map +1 -1
- package/dist/js/integrations/nativelinkederrors.d.ts +8 -51
- package/dist/js/integrations/nativelinkederrors.d.ts.map +1 -1
- package/dist/js/integrations/nativelinkederrors.js +112 -124
- package/dist/js/integrations/nativelinkederrors.js.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlers.d.ts +8 -54
- package/dist/js/integrations/reactnativeerrorhandlers.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlers.js +109 -199
- package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlersutils.d.ts +27 -0
- package/dist/js/integrations/reactnativeerrorhandlersutils.d.ts.map +1 -0
- package/dist/js/integrations/reactnativeerrorhandlersutils.js +77 -0
- package/dist/js/integrations/reactnativeerrorhandlersutils.js.map +1 -0
- package/dist/js/integrations/reactnativeinfo.d.ts +8 -15
- package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeinfo.js +51 -51
- package/dist/js/integrations/reactnativeinfo.js.map +1 -1
- package/dist/js/integrations/release.d.ts +8 -15
- package/dist/js/integrations/release.d.ts.map +1 -1
- package/dist/js/integrations/release.js +55 -57
- package/dist/js/integrations/release.js.map +1 -1
- package/dist/js/integrations/rewriteframes.js +2 -2
- package/dist/js/integrations/rewriteframes.js.map +1 -1
- package/dist/js/integrations/screenshot.d.ts +8 -23
- package/dist/js/integrations/screenshot.d.ts.map +1 -1
- package/dist/js/integrations/screenshot.js +31 -47
- package/dist/js/integrations/screenshot.js.map +1 -1
- package/dist/js/integrations/sdkinfo.d.ts +8 -16
- package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
- package/dist/js/integrations/sdkinfo.js +54 -41
- package/dist/js/integrations/sdkinfo.js.map +1 -1
- package/dist/js/integrations/spotlight.d.ts +10 -2
- package/dist/js/integrations/spotlight.d.ts.map +1 -1
- package/dist/js/integrations/spotlight.js +14 -9
- package/dist/js/integrations/spotlight.js.map +1 -1
- package/dist/js/integrations/viewhierarchy.d.ts +8 -18
- package/dist/js/integrations/viewhierarchy.d.ts.map +1 -1
- package/dist/js/integrations/viewhierarchy.js +46 -43
- package/dist/js/integrations/viewhierarchy.js.map +1 -1
- package/dist/js/options.d.ts +2 -24
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/profiling/integration.d.ts +8 -32
- package/dist/js/profiling/integration.d.ts.map +1 -1
- package/dist/js/profiling/integration.js +120 -119
- package/dist/js/profiling/integration.js.map +1 -1
- package/dist/js/tracing/nativeframes.d.ts +0 -4
- package/dist/js/tracing/nativeframes.d.ts.map +1 -1
- package/dist/js/tracing/nativeframes.js +14 -14
- package/dist/js/tracing/nativeframes.js.map +1 -1
- package/dist/js/utils/environment.d.ts +0 -4
- package/dist/js/utils/environment.d.ts.map +1 -1
- package/dist/js/utils/environment.js +0 -8
- package/dist/js/utils/environment.js.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.d.ts.map +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.d.ts +1 -7
- package/dist/js/wrapper.d.ts.map +1 -1
- package/dist/js/wrapper.js +0 -24
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentry.mm +14 -49
- package/ios/RNSentryDependencyContainer.h +4 -1
- package/ios/RNSentryDependencyContainer.m +4 -0
- package/ios/RNSentryFramesTrackerListener.h +6 -0
- package/ios/RNSentryFramesTrackerListener.m +4 -0
- package/ios/RNSentryOnDrawReporter.h +23 -0
- package/ios/RNSentryOnDrawReporter.m +5 -16
- package/ios/RNSentryRNSScreen.h +6 -0
- package/ios/RNSentryRNSScreen.m +6 -1
- package/package.json +12 -20
- package/src/js/NativeRNSentry.ts +0 -2
- package/ts3.8/dist/js/NativeRNSentry.d.ts +0 -2
- package/ts3.8/dist/js/client.d.ts +0 -8
- package/ts3.8/dist/js/index.d.ts +5 -3
- package/ts3.8/dist/js/integrations/debugsymbolicator.d.ts +8 -60
- package/ts3.8/dist/js/integrations/debugsymbolicatorutils.d.ts +18 -0
- package/ts3.8/dist/js/integrations/devicecontext.d.ts +8 -15
- package/ts3.8/dist/js/integrations/eventorigin.d.ts +8 -15
- package/ts3.8/dist/js/integrations/expocontext.d.ts +8 -15
- package/ts3.8/dist/js/integrations/exports.d.ts +16 -0
- package/ts3.8/dist/js/integrations/index.d.ts +4 -1
- package/ts3.8/dist/js/integrations/modulesloader.d.ts +8 -15
- package/ts3.8/dist/js/integrations/nativelinkederrors.d.ts +8 -51
- package/ts3.8/dist/js/integrations/reactnativeerrorhandlers.d.ts +8 -54
- package/ts3.8/dist/js/integrations/reactnativeerrorhandlersutils.d.ts +27 -0
- package/ts3.8/dist/js/integrations/reactnativeinfo.d.ts +8 -15
- package/ts3.8/dist/js/integrations/release.d.ts +8 -15
- package/ts3.8/dist/js/integrations/screenshot.d.ts +8 -23
- package/ts3.8/dist/js/integrations/sdkinfo.d.ts +8 -16
- package/ts3.8/dist/js/integrations/spotlight.d.ts +10 -2
- package/ts3.8/dist/js/integrations/viewhierarchy.d.ts +8 -18
- package/ts3.8/dist/js/options.d.ts +2 -24
- package/ts3.8/dist/js/profiling/integration.d.ts +8 -32
- package/ts3.8/dist/js/tracing/nativeframes.d.ts +0 -4
- package/ts3.8/dist/js/utils/environment.d.ts +0 -4
- package/ts3.8/dist/js/version.d.ts +1 -1
- package/ts3.8/dist/js/wrapper.d.ts +1 -7
- package/dist/js/integrations/mobilereplay.d.ts +0 -36
- package/dist/js/integrations/mobilereplay.d.ts.map +0 -1
- package/dist/js/integrations/mobilereplay.js +0 -97
- package/dist/js/integrations/mobilereplay.js.map +0 -1
- package/dist/js/utils/clientutils.d.ts +0 -8
- package/dist/js/utils/clientutils.d.ts.map +0 -1
- package/dist/js/utils/clientutils.js +0 -7
- package/dist/js/utils/clientutils.js.map +0 -1
- package/ts3.8/dist/js/integrations/mobilereplay.d.ts +0 -36
- package/ts3.8/dist/js/utils/clientutils.d.ts +0 -8
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
+
import { convertIntegrationFnToClass } from '@sentry/core';
|
|
2
3
|
import { logger } from '@sentry/utils';
|
|
3
4
|
import { isExpoGo, notWeb } from '../utils/environment';
|
|
4
5
|
import { SDK_NAME, SDK_PACKAGE_NAME, SDK_VERSION } from '../version';
|
|
5
6
|
import { NATIVE } from '../wrapper';
|
|
7
|
+
const INTEGRATION_NAME = 'SdkInfo';
|
|
6
8
|
export const defaultSdkInfo = {
|
|
7
9
|
name: SDK_NAME,
|
|
8
10
|
packages: [
|
|
@@ -14,47 +16,58 @@ export const defaultSdkInfo = {
|
|
|
14
16
|
version: SDK_VERSION,
|
|
15
17
|
};
|
|
16
18
|
/** Default SdkInfo instrumentation */
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*/
|
|
28
|
-
setupOnce(addGlobalEventProcessor) {
|
|
29
|
-
addGlobalEventProcessor((event) => __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
// this._nativeSdkInfo should be defined a following time so this call won't always be awaited.
|
|
31
|
-
if (this._nativeSdkPackage === null) {
|
|
32
|
-
try {
|
|
33
|
-
this._nativeSdkPackage = yield NATIVE.fetchNativeSdkInfo();
|
|
34
|
-
}
|
|
35
|
-
catch (e) {
|
|
36
|
-
// If this fails, go ahead as usual as we would rather have the event be sent with a package missing.
|
|
37
|
-
if (notWeb() && !isExpoGo()) {
|
|
38
|
-
logger.warn('[SdkInfo] Native SDK Info retrieval failed...something could be wrong with your Sentry installation:');
|
|
39
|
-
logger.warn(e);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
event.platform = event.platform || 'javascript';
|
|
44
|
-
event.sdk = event.sdk || {};
|
|
45
|
-
event.sdk.name = event.sdk.name || defaultSdkInfo.name;
|
|
46
|
-
event.sdk.version = event.sdk.version || defaultSdkInfo.version;
|
|
47
|
-
event.sdk.packages = [
|
|
48
|
-
// default packages are added by baseclient and should not be added here
|
|
49
|
-
...(event.sdk.packages || []),
|
|
50
|
-
...((this._nativeSdkPackage && [this._nativeSdkPackage]) || []),
|
|
51
|
-
];
|
|
52
|
-
return event;
|
|
53
|
-
}));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
19
|
+
export const sdkInfoIntegration = () => {
|
|
20
|
+
const fetchNativeSdkInfo = createCachedFetchNativeSdkInfo();
|
|
21
|
+
return {
|
|
22
|
+
name: INTEGRATION_NAME,
|
|
23
|
+
setupOnce: () => {
|
|
24
|
+
// noop
|
|
25
|
+
},
|
|
26
|
+
processEvent: (event) => processEvent(event, fetchNativeSdkInfo),
|
|
27
|
+
};
|
|
28
|
+
};
|
|
56
29
|
/**
|
|
57
|
-
*
|
|
30
|
+
* Default SdkInfo instrumentation
|
|
31
|
+
*
|
|
32
|
+
* @deprecated Use `sdkInfoIntegration()` instead.
|
|
58
33
|
*/
|
|
59
|
-
|
|
34
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
35
|
+
export const SdkInfo = convertIntegrationFnToClass(INTEGRATION_NAME, sdkInfoIntegration);
|
|
36
|
+
function processEvent(event, fetchNativeSdkInfo) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
const nativeSdkPackage = yield fetchNativeSdkInfo();
|
|
39
|
+
event.platform = event.platform || 'javascript';
|
|
40
|
+
event.sdk = event.sdk || {};
|
|
41
|
+
event.sdk.name = event.sdk.name || defaultSdkInfo.name;
|
|
42
|
+
event.sdk.version = event.sdk.version || defaultSdkInfo.version;
|
|
43
|
+
event.sdk.packages = [
|
|
44
|
+
// default packages are added by baseclient and should not be added here
|
|
45
|
+
...(event.sdk.packages || []),
|
|
46
|
+
...((nativeSdkPackage && [nativeSdkPackage]) || []),
|
|
47
|
+
];
|
|
48
|
+
return event;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function createCachedFetchNativeSdkInfo() {
|
|
52
|
+
if (!notWeb() || isExpoGo()) {
|
|
53
|
+
return () => {
|
|
54
|
+
return Promise.resolve(null);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
let isCached = false;
|
|
58
|
+
let nativeSdkPackageCache = null;
|
|
59
|
+
return () => __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
if (isCached) {
|
|
61
|
+
return nativeSdkPackageCache;
|
|
62
|
+
}
|
|
63
|
+
try {
|
|
64
|
+
nativeSdkPackageCache = yield NATIVE.fetchNativeSdkInfo();
|
|
65
|
+
isCached = true;
|
|
66
|
+
}
|
|
67
|
+
catch (e) {
|
|
68
|
+
logger.warn('Could not fetch native sdk info.', e);
|
|
69
|
+
}
|
|
70
|
+
return nativeSdkPackageCache;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
60
73
|
//# sourceMappingURL=sdkinfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdkinfo.js","sourceRoot":"","sources":["../../../src/js/integrations/sdkinfo.ts"],"names":[],"mappings":";
|
|
1
|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AAC,GAAG,IAAI,EAAE,CAAC;QAC5B,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,cAAc,CAAC,IAAI,CAAC;QACvD,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC;QAChE,KAAK,CAAC,GAAG,CAAC,QAAQ,GAAG;YACnB,wEAAwE;YACxE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;YAC7B,GAAG,CAAC,CAAC,gBAAgB,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,EAAE,CAAC;SACpD,CAAC;QAEF,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AAED,SAAS,8BAA8B;IACrC,IAAI,CAAC,MAAM,EAAE,IAAI,QAAQ,EAAE,EAAE;QAC3B,OAAO,GAAG,EAAE;YACV,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC,CAAC;KACH;IAED,IAAI,QAAQ,GAAY,KAAK,CAAC;IAC9B,IAAI,qBAAqB,GAAmB,IAAI,CAAC;IAEjD,OAAO,GAAS,EAAE;QAChB,IAAI,QAAQ,EAAE;YACZ,OAAO,qBAAqB,CAAC;SAC9B;QAED,IAAI;YACF,qBAAqB,GAAG,MAAM,MAAM,CAAC,kBAAkB,EAAE,CAAC;YAC1D,QAAQ,GAAG,IAAI,CAAC;SACjB;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE,CAAC,CAAC,CAAC;SACpD;QAED,OAAO,qBAAqB,CAAC;IAC/B,CAAC,CAAA,CAAC;AACJ,CAAC","sourcesContent":["import { convertIntegrationFnToClass } from '@sentry/core';\nimport type {\n Event,\n Integration,\n IntegrationClass,\n IntegrationFnResult,\n Package,\n SdkInfo as SdkInfoType,\n} from '@sentry/types';\nimport { logger } from '@sentry/utils';\n\nimport { isExpoGo, notWeb } from '../utils/environment';\nimport { SDK_NAME, SDK_PACKAGE_NAME, SDK_VERSION } from '../version';\nimport { NATIVE } from '../wrapper';\n\nconst INTEGRATION_NAME = 'SdkInfo';\n\ntype DefaultSdkInfo = Pick<Required<SdkInfoType>, 'name' | 'packages' | 'version'>;\n\nexport const defaultSdkInfo: DefaultSdkInfo = {\n name: SDK_NAME,\n packages: [\n {\n name: SDK_PACKAGE_NAME,\n version: SDK_VERSION,\n },\n ],\n version: SDK_VERSION,\n};\n\n/** Default SdkInfo instrumentation */\nexport const sdkInfoIntegration = (): IntegrationFnResult => {\n const fetchNativeSdkInfo = createCachedFetchNativeSdkInfo();\n\n return {\n name: INTEGRATION_NAME,\n setupOnce: () => {\n // noop\n },\n processEvent: (event: Event) => processEvent(event, fetchNativeSdkInfo),\n };\n};\n\n/**\n * Default SdkInfo instrumentation\n *\n * @deprecated Use `sdkInfoIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const SdkInfo = convertIntegrationFnToClass(\n INTEGRATION_NAME,\n sdkInfoIntegration,\n) as IntegrationClass<Integration>;\n\nasync function processEvent(event: Event, fetchNativeSdkInfo: () => Promise<Package | null>): Promise<Event> {\n const nativeSdkPackage = await fetchNativeSdkInfo();\n\n event.platform = event.platform || 'javascript';\n event.sdk = event.sdk || {};\n event.sdk.name = event.sdk.name || defaultSdkInfo.name;\n event.sdk.version = event.sdk.version || defaultSdkInfo.version;\n event.sdk.packages = [\n // default packages are added by baseclient and should not be added here\n ...(event.sdk.packages || []),\n ...((nativeSdkPackage && [nativeSdkPackage]) || []),\n ];\n\n return event;\n}\n\nfunction createCachedFetchNativeSdkInfo(): () => Promise<Package | null> {\n if (!notWeb() || isExpoGo()) {\n return () => {\n return Promise.resolve(null);\n };\n }\n\n let isCached: boolean = false;\n let nativeSdkPackageCache: Package | null = null;\n\n return async () => {\n if (isCached) {\n return nativeSdkPackageCache;\n }\n\n try {\n nativeSdkPackageCache = await NATIVE.fetchNativeSdkInfo();\n isCached = true;\n } catch (e) {\n logger.warn('Could not fetch native sdk info.', e);\n }\n\n return nativeSdkPackageCache;\n };\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Integration } from '@sentry/types';
|
|
1
|
+
import type { Integration, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
type SpotlightReactNativeIntegrationOptions = {
|
|
3
3
|
/**
|
|
4
4
|
* The URL of the Sidecar instance to connect and forward events to.
|
|
@@ -13,6 +13,14 @@ type SpotlightReactNativeIntegrationOptions = {
|
|
|
13
13
|
*
|
|
14
14
|
* Learn more about spotlight at https://spotlightjs.com
|
|
15
15
|
*/
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function spotlightIntegration({ sidecarUrl, }?: SpotlightReactNativeIntegrationOptions): IntegrationFnResult;
|
|
17
|
+
/**
|
|
18
|
+
* Use this integration to send errors and transactions to Spotlight.
|
|
19
|
+
*
|
|
20
|
+
* Learn more about spotlight at https://spotlightjs.com
|
|
21
|
+
*
|
|
22
|
+
* @deprecated Use `spotlightIntegration()` instead.
|
|
23
|
+
*/
|
|
24
|
+
export declare const Spotlight: (args_0?: SpotlightReactNativeIntegrationOptions | undefined) => Integration;
|
|
17
25
|
export {};
|
|
18
26
|
//# sourceMappingURL=spotlight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spotlight.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/spotlight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"spotlight.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/spotlight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAKV,WAAW,EACX,mBAAmB,EACpB,MAAM,eAAe,CAAC;AAOvB,KAAK,sCAAsC,GAAG;IAC5C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,UAAmC,GACpC,GAAE,sCAA2C,GAAG,mBAAmB,CAcnE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,mEAAiF,WAAW,CAAC"}
|
|
@@ -7,21 +7,26 @@ import { createStealthXhr, XHR_READYSTATE_DONE } from '../utils/xhr';
|
|
|
7
7
|
*
|
|
8
8
|
* Learn more about spotlight at https://spotlightjs.com
|
|
9
9
|
*/
|
|
10
|
-
export function
|
|
10
|
+
export function spotlightIntegration({ sidecarUrl = getDefaultSidecarUrl(), } = {}) {
|
|
11
11
|
logger.info('[Spotlight] Using Sidecar URL', sidecarUrl);
|
|
12
12
|
return {
|
|
13
13
|
name: 'Spotlight',
|
|
14
|
-
setupOnce(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
else {
|
|
20
|
-
logger.warn('[Spotlight] Could not initialize Sidecar integration due to missing Client');
|
|
21
|
-
}
|
|
14
|
+
setupOnce() {
|
|
15
|
+
// nothing to do here
|
|
16
|
+
},
|
|
17
|
+
setup(client) {
|
|
18
|
+
setup(client, sidecarUrl);
|
|
22
19
|
},
|
|
23
20
|
};
|
|
24
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Use this integration to send errors and transactions to Spotlight.
|
|
24
|
+
*
|
|
25
|
+
* Learn more about spotlight at https://spotlightjs.com
|
|
26
|
+
*
|
|
27
|
+
* @deprecated Use `spotlightIntegration()` instead.
|
|
28
|
+
*/
|
|
29
|
+
export const Spotlight = spotlightIntegration;
|
|
25
30
|
function setup(client, sidecarUrl) {
|
|
26
31
|
sendEnvelopesToSidecar(client, sidecarUrl);
|
|
27
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spotlight.js","sourceRoot":"","sources":["../../../src/js/integrations/spotlight.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spotlight.js","sourceRoot":"","sources":["../../../src/js/integrations/spotlight.ts"],"names":[],"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oCAAoC,CAAC;IACnD,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEvC,IAAI,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE;QACzB,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;KACnB;SAAM;QACL,qBAAqB;QACrB,OAAO,IAAI,CAAC;KACb;AACH,CAAC","sourcesContent":["import type {\n BaseTransportOptions,\n Client,\n ClientOptions,\n Envelope,\n Integration,\n IntegrationFnResult,\n} from '@sentry/types';\nimport { logger, serializeEnvelope } from '@sentry/utils';\n\nimport { makeUtf8TextEncoder } from '../transports/TextEncoder';\nimport { ReactNativeLibraries } from '../utils/rnlibraries';\nimport { createStealthXhr, XHR_READYSTATE_DONE } from '../utils/xhr';\n\ntype SpotlightReactNativeIntegrationOptions = {\n /**\n * The URL of the Sidecar instance to connect and forward events to.\n * If not set, Spotlight will try to connect to the Sidecar running on localhost:8969.\n *\n * @default \"http://localhost:8969/stream\"\n */\n sidecarUrl?: string;\n};\n\n/**\n * Use this integration to send errors and transactions to Spotlight.\n *\n * Learn more about spotlight at https://spotlightjs.com\n */\nexport function spotlightIntegration({\n sidecarUrl = getDefaultSidecarUrl(),\n}: SpotlightReactNativeIntegrationOptions = {}): IntegrationFnResult {\n logger.info('[Spotlight] Using Sidecar URL', sidecarUrl);\n\n return {\n name: 'Spotlight',\n\n setupOnce(): void {\n // nothing to do here\n },\n\n setup(client: Client<ClientOptions<BaseTransportOptions>>): void {\n setup(client, sidecarUrl);\n },\n };\n}\n\n/**\n * Use this integration to send errors and transactions to Spotlight.\n *\n * Learn more about spotlight at https://spotlightjs.com\n *\n * @deprecated Use `spotlightIntegration()` instead.\n */\nexport const Spotlight = spotlightIntegration as (...args: Parameters<typeof spotlightIntegration>) => Integration;\n\nfunction setup(client: Client, sidecarUrl: string): void {\n sendEnvelopesToSidecar(client, sidecarUrl);\n}\n\nfunction sendEnvelopesToSidecar(client: Client, sidecarUrl: string): void {\n if (!client.on) {\n return;\n }\n\n client.on('beforeEnvelope', (originalEnvelope: Envelope) => {\n // TODO: This is a workaround for spotlight/sidecar not supporting images\n const spotlightEnvelope: Envelope = [...originalEnvelope];\n const envelopeItems = [...originalEnvelope[1]].filter(\n item => typeof item[0].content_type !== 'string' || !item[0].content_type.startsWith('image'),\n );\n\n spotlightEnvelope[1] = envelopeItems as Envelope[1];\n\n const xhr = createStealthXhr();\n if (!xhr) {\n logger.error('[Spotlight] Sentry SDK can not create XHR object');\n return;\n }\n\n xhr.open('POST', sidecarUrl, true);\n xhr.setRequestHeader('Content-Type', 'application/x-sentry-envelope');\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState === XHR_READYSTATE_DONE) {\n const status = xhr.status;\n if (status === 0 || (status >= 200 && status < 400)) {\n // The request has been completed successfully\n } else {\n // Handle the error\n logger.error(\n \"[Spotlight] Sentry SDK can't connect to Spotlight is it running? See https://spotlightjs.com to download it.\",\n new Error(xhr.statusText),\n );\n }\n }\n };\n\n xhr.send(serializeEnvelope(spotlightEnvelope, makeUtf8TextEncoder()));\n });\n}\n\nfunction getDefaultSidecarUrl(): string {\n try {\n const { url } = ReactNativeLibraries.Devtools?.getDevServer();\n return `http://${getHostnameFromString(url)}:8969/stream`;\n } catch (_oO) {\n // We can't load devserver URL\n }\n return 'http://localhost:8969/stream';\n}\n\n/**\n * React Native implementation of the URL class is missing the `hostname` property.\n */\nfunction getHostnameFromString(urlString: string): string | null {\n const regex = /^(?:\\w+:)?\\/\\/([^/:]+)(:\\d+)?(.*)$/;\n const matches = urlString.match(regex);\n\n if (matches && matches[1]) {\n return matches[1];\n } else {\n // Invalid URL format\n return null;\n }\n}\n"]}
|
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
/** Adds ViewHierarchy to error events */
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
private static _attachmentType;
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
setupOnce(addGlobalEventProcessor: (e: EventProcessor) => void): void;
|
|
19
|
-
}
|
|
3
|
+
export declare const viewHierarchyIntegration: () => IntegrationFnResult;
|
|
4
|
+
/**
|
|
5
|
+
* Adds ViewHierarchy to error events
|
|
6
|
+
*
|
|
7
|
+
* @deprecated Use `viewHierarchyIntegration()` instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ViewHierarchy: IntegrationClass<Integration>;
|
|
20
10
|
//# sourceMappingURL=viewhierarchy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewhierarchy.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/viewhierarchy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"viewhierarchy.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/viewhierarchy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgC,WAAW,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAWtH,yCAAyC;AACzC,eAAO,MAAM,wBAAwB,QAAO,mBAQ3C,CAAC;AAEF;;;;GAIG;AAEH,eAAO,MAAM,aAAa,+BAGQ,CAAC"}
|
|
@@ -1,50 +1,53 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
+
import { convertIntegrationFnToClass } from '@sentry/core';
|
|
2
3
|
import { logger } from '@sentry/utils';
|
|
3
4
|
import { NATIVE } from '../wrapper';
|
|
5
|
+
const filename = 'view-hierarchy.json';
|
|
6
|
+
const contentType = 'application/json';
|
|
7
|
+
const attachmentType = 'event.view_hierarchy';
|
|
8
|
+
const INTEGRATION_NAME = 'ViewHierarchy';
|
|
4
9
|
/** Adds ViewHierarchy to error events */
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
setupOnce(addGlobalEventProcessor) {
|
|
16
|
-
addGlobalEventProcessor((event, hint) => __awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
const hasException = event.exception && event.exception.values && event.exception.values.length > 0;
|
|
18
|
-
if (!hasException) {
|
|
19
|
-
return event;
|
|
20
|
-
}
|
|
21
|
-
let viewHierarchy = null;
|
|
22
|
-
try {
|
|
23
|
-
viewHierarchy = yield NATIVE.fetchViewHierarchy();
|
|
24
|
-
}
|
|
25
|
-
catch (e) {
|
|
26
|
-
logger.error('Failed to get view hierarchy from native.', e);
|
|
27
|
-
}
|
|
28
|
-
if (viewHierarchy) {
|
|
29
|
-
hint.attachments = [
|
|
30
|
-
{
|
|
31
|
-
filename: ViewHierarchy._fileName,
|
|
32
|
-
contentType: ViewHierarchy._contentType,
|
|
33
|
-
attachmentType: ViewHierarchy._attachmentType,
|
|
34
|
-
data: viewHierarchy,
|
|
35
|
-
},
|
|
36
|
-
...((hint === null || hint === void 0 ? void 0 : hint.attachments) || []),
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
return event;
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
10
|
+
export const viewHierarchyIntegration = () => {
|
|
11
|
+
return {
|
|
12
|
+
name: INTEGRATION_NAME,
|
|
13
|
+
setupOnce: () => {
|
|
14
|
+
// noop
|
|
15
|
+
},
|
|
16
|
+
processEvent,
|
|
17
|
+
};
|
|
18
|
+
};
|
|
43
19
|
/**
|
|
44
|
-
*
|
|
20
|
+
* Adds ViewHierarchy to error events
|
|
21
|
+
*
|
|
22
|
+
* @deprecated Use `viewHierarchyIntegration()` instead.
|
|
45
23
|
*/
|
|
46
|
-
|
|
47
|
-
ViewHierarchy
|
|
48
|
-
|
|
49
|
-
|
|
24
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
25
|
+
export const ViewHierarchy = convertIntegrationFnToClass(INTEGRATION_NAME, viewHierarchyIntegration);
|
|
26
|
+
function processEvent(event, hint) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const hasException = event.exception && event.exception.values && event.exception.values.length > 0;
|
|
29
|
+
if (!hasException) {
|
|
30
|
+
return event;
|
|
31
|
+
}
|
|
32
|
+
let viewHierarchy = null;
|
|
33
|
+
try {
|
|
34
|
+
viewHierarchy = yield NATIVE.fetchViewHierarchy();
|
|
35
|
+
}
|
|
36
|
+
catch (e) {
|
|
37
|
+
logger.error('Failed to get view hierarchy from native.', e);
|
|
38
|
+
}
|
|
39
|
+
if (viewHierarchy) {
|
|
40
|
+
hint.attachments = [
|
|
41
|
+
{
|
|
42
|
+
filename,
|
|
43
|
+
contentType,
|
|
44
|
+
attachmentType,
|
|
45
|
+
data: viewHierarchy,
|
|
46
|
+
},
|
|
47
|
+
...((hint === null || hint === void 0 ? void 0 : hint.attachments) || []),
|
|
48
|
+
];
|
|
49
|
+
}
|
|
50
|
+
return event;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
50
53
|
//# sourceMappingURL=viewhierarchy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewhierarchy.js","sourceRoot":"","sources":["../../../src/js/integrations/viewhierarchy.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"viewhierarchy.js","sourceRoot":"","sources":["../../../src/js/integrations/viewhierarchy.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,MAAM,QAAQ,GAAW,qBAAqB,CAAC;AAC/C,MAAM,WAAW,GAAW,kBAAkB,CAAC;AAC/C,MAAM,cAAc,GAAG,sBAAsD,CAAC;AAE9E,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAEzC,yCAAyC;AACzC,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAwB,EAAE;IAChE,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,SAAS,EAAE,GAAG,EAAE;YACd,OAAO;QACT,CAAC;QACD,YAAY;KACb,CAAC;AACJ,CAAC,CAAC;AAEF;;;;GAIG;AACH,mDAAmD;AACnD,MAAM,CAAC,MAAM,aAAa,GAAG,2BAA2B,CACtD,gBAAgB,EAChB,wBAAwB,CACQ,CAAC;AAEnC,SAAe,YAAY,CAAC,KAAY,EAAE,IAAe;;QACvD,MAAM,YAAY,GAAG,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QACpG,IAAI,CAAC,YAAY,EAAE;YACjB,OAAO,KAAK,CAAC;SACd;QAED,IAAI,aAAa,GAAsB,IAAI,CAAC;QAC5C,IAAI;YACF,aAAa,GAAG,MAAM,MAAM,CAAC,kBAAkB,EAAE,CAAC;SACnD;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,CAAC,KAAK,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;SAC9D;QAED,IAAI,aAAa,EAAE;YACjB,IAAI,CAAC,WAAW,GAAG;gBACjB;oBACE,QAAQ;oBACR,WAAW;oBACX,cAAc;oBACd,IAAI,EAAE,aAAa;iBACpB;gBACD,GAAG,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,KAAI,EAAE,CAAC;aAC7B,CAAC;SACH;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CAAA","sourcesContent":["import { convertIntegrationFnToClass } from '@sentry/core';\nimport type { Attachment, Event, EventHint, Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';\nimport { logger } from '@sentry/utils';\n\nimport { NATIVE } from '../wrapper';\n\nconst filename: string = 'view-hierarchy.json';\nconst contentType: string = 'application/json';\nconst attachmentType = 'event.view_hierarchy' as Attachment['attachmentType'];\n\nconst INTEGRATION_NAME = 'ViewHierarchy';\n\n/** Adds ViewHierarchy to error events */\nexport const viewHierarchyIntegration = (): IntegrationFnResult => {\n return {\n name: INTEGRATION_NAME,\n setupOnce: () => {\n // noop\n },\n processEvent,\n };\n};\n\n/**\n * Adds ViewHierarchy to error events\n *\n * @deprecated Use `viewHierarchyIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const ViewHierarchy = convertIntegrationFnToClass(\n INTEGRATION_NAME,\n viewHierarchyIntegration,\n) as IntegrationClass<Integration>;\n\nasync function processEvent(event: Event, hint: EventHint): Promise<Event> {\n const hasException = event.exception && event.exception.values && event.exception.values.length > 0;\n if (!hasException) {\n return event;\n }\n\n let viewHierarchy: Uint8Array | null = null;\n try {\n viewHierarchy = await NATIVE.fetchViewHierarchy();\n } catch (e) {\n logger.error('Failed to get view hierarchy from native.', e);\n }\n\n if (viewHierarchy) {\n hint.attachments = [\n {\n filename,\n contentType,\n attachmentType,\n data: viewHierarchy,\n },\n ...(hint?.attachments || []),\n ];\n }\n\n return event;\n}\n"]}
|
package/dist/js/options.d.ts
CHANGED
|
@@ -159,28 +159,6 @@ export interface BaseReactNativeOptions {
|
|
|
159
159
|
* from the function, no screenshot will be attached.
|
|
160
160
|
*/
|
|
161
161
|
beforeScreenshot?: (event: Event, hint: EventHint) => boolean;
|
|
162
|
-
/**
|
|
163
|
-
* Options which are in beta, or otherwise not guaranteed to be stable.
|
|
164
|
-
*/
|
|
165
|
-
_experiments?: {
|
|
166
|
-
[key: string]: unknown;
|
|
167
|
-
/**
|
|
168
|
-
* The sample rate for profiling
|
|
169
|
-
* 1.0 will profile all transactions and 0 will profile none.
|
|
170
|
-
*/
|
|
171
|
-
profilesSampleRate?: number;
|
|
172
|
-
/**
|
|
173
|
-
* The sample rate for session-long replays.
|
|
174
|
-
* 1.0 will record all sessions and 0 will record none.
|
|
175
|
-
*/
|
|
176
|
-
replaysSessionSampleRate?: number;
|
|
177
|
-
/**
|
|
178
|
-
* The sample rate for sessions that has had an error occur.
|
|
179
|
-
* This is independent of `sessionSampleRate`.
|
|
180
|
-
* 1.0 will record all sessions and 0 will record none.
|
|
181
|
-
*/
|
|
182
|
-
replaysOnErrorSampleRate?: number;
|
|
183
|
-
};
|
|
184
162
|
}
|
|
185
163
|
export interface ReactNativeTransportOptions extends BrowserTransportOptions {
|
|
186
164
|
/**
|
|
@@ -192,9 +170,9 @@ export interface ReactNativeTransportOptions extends BrowserTransportOptions {
|
|
|
192
170
|
* Configuration options for the Sentry ReactNative SDK.
|
|
193
171
|
* @see ReactNativeFrontend for more information.
|
|
194
172
|
*/
|
|
195
|
-
export interface ReactNativeOptions extends
|
|
173
|
+
export interface ReactNativeOptions extends Options<ReactNativeTransportOptions>, BaseReactNativeOptions {
|
|
196
174
|
}
|
|
197
|
-
export interface ReactNativeClientOptions extends Omit<ClientOptions<ReactNativeTransportOptions>, '
|
|
175
|
+
export interface ReactNativeClientOptions extends Omit<ClientOptions<ReactNativeTransportOptions>, 'tunnel'>, BaseReactNativeOptions {
|
|
198
176
|
}
|
|
199
177
|
export interface ReactNativeWrapperOptions {
|
|
200
178
|
/** Props for the root React profiler */
|
package/dist/js/options.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/js/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG9F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eA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CAAG;AAE7B,MAAM,WAAW,yBAAyB;IACxC,wCAAwC;IACxC,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B,8CAA8C;IAC9C,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAkBtE"}
|
package/dist/js/options.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/js/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/js/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAmNvD;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,WAAoB;IAC3D,IAAI,OAAO,WAAW,KAAK,SAAS,EAAE;QACpC,yCAAyC;QACzC,OAAO,WAAW,CAAC;KACpB;IAED,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,QAAQ,CAAC,EAAE,KAAK,SAAS,EAAE;QACtD,oEAAoE;QACpE,OAAO,KAAK,CAAC;KACd;IAED,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,IAAI,aAAa,IAAI,aAAa,CAAC,YAAY,KAAK,MAAM,EAAE;QAC1D,yDAAyD;QACzD,OAAO,KAAK,CAAC;KACd;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import type { BrowserTransportOptions } from '@sentry/browser/types/transports/types';\nimport type { ProfilerProps } from '@sentry/react/types/profiler';\nimport type { CaptureContext, ClientOptions, Event, EventHint, Options } from '@sentry/types';\nimport { Platform } from 'react-native';\n\nimport type { TouchEventBoundaryProps } from './touchevents';\nimport { getExpoConstants } from './utils/expomodules';\n\nexport interface BaseReactNativeOptions {\n /**\n * Enables native transport + device info + offline caching.\n * Be careful, disabling this also breaks automatic release setting.\n * This means you have to manage setting the release yourself.\n * Defaults to `true`.\n */\n enableNative?: boolean;\n\n /**\n * Enables native crashHandling. This only works if `enableNative` is `true`.\n * Defaults to `true`.\n */\n enableNativeCrashHandling?: boolean;\n\n /**\n * Initializes the native SDK on init.\n * Set this to `false` if you have an existing native SDK and don't want to re-initialize.\n *\n * NOTE: Be careful and only use this if you know what you are doing.\n * If you use this flag, make sure a native SDK is running before the JS Engine initializes or events might not be captured.\n * Also, make sure the DSN on both the React Native side and the native side are the same one.\n * We strongly recommend checking the documentation if you need to use this.\n *\n * @default true\n */\n autoInitializeNativeSdk?: boolean;\n\n /** Should the native nagger alert be shown or not. */\n enableNativeNagger?: boolean;\n\n /** Should sessions be tracked to Sentry Health or not. */\n enableAutoSessionTracking?: boolean;\n\n /** The interval to end a session if the App goes to the background. */\n sessionTrackingIntervalMillis?: number;\n\n /** Enable NDK on Android\n *\n * @default true\n */\n enableNdk?: boolean;\n\n /** Enable scope sync from Java to NDK on Android\n * Only has an effect if `enableNdk` is `true`.\n */\n enableNdkScopeSync?: boolean;\n\n /** When enabled, all the threads are automatically attached to all logged events on Android */\n attachThreads?: boolean;\n\n /**\n * When enabled, certain personally identifiable information (PII) is added by active integrations.\n *\n * @default false\n */\n sendDefaultPii?: boolean;\n\n /**\n * Callback that is called after the RN SDK on the JS Layer has made contact with the Native Layer.\n */\n onReady?: (response: {\n /** `true` if the native SDK has been initialized, `false` otherwise. */\n didCallNativeInit: boolean;\n }) => void;\n\n /** Enable auto performance tracking by default. Renamed from `enableAutoPerformanceTracking` in v5. */\n enableAutoPerformanceTracing?: boolean;\n\n /**\n * Enables Out of Memory Tracking for iOS and macCatalyst.\n * See the following link for more information and possible restrictions:\n * https://docs.sentry.io/platforms/apple/guides/ios/configuration/out-of-memory/\n *\n * Renamed from `enableOutOfMemoryTracking` in v5.\n *\n * @default true\n */\n enableWatchdogTerminationTracking?: boolean;\n\n /**\n * Set data to the inital scope\n * @deprecated Use `Sentry.configureScope(...)`\n */\n initialScope?: CaptureContext;\n\n /**\n * When enabled, Sentry will overwrite the global Promise instance to ensure that unhandled rejections are correctly tracked.\n * If you run into issues with Promise polyfills such as `core-js`, make sure you polyfill after Sentry is initialized.\n * Read more at https://docs.sentry.io/platforms/react-native/troubleshooting/#unhandled-promise-rejections\n *\n * When disabled, this option will not disable unhandled rejection tracking. Set `onunhandledrejection: false` on the `ReactNativeErrorHandlers` integration instead.\n *\n * @default true\n */\n patchGlobalPromise?: boolean;\n\n /**\n * The max cache items for capping the number of envelopes.\n *\n * @default 30\n */\n maxCacheItems?: number;\n\n /**\n * When enabled, the SDK tracks when the application stops responding for a specific amount of\n * time defined by the `appHangTimeoutInterval` option.\n *\n * iOS only\n *\n * @default true\n */\n enableAppHangTracking?: boolean;\n\n /**\n * The minimum amount of time an app should be unresponsive to be classified as an App Hanging.\n * The actual amount may be a little longer.\n * Avoid using values lower than 100ms, which may cause a lot of app hangs events being transmitted.\n * Value should be in seconds.\n *\n * iOS only\n *\n * @default 2\n */\n appHangTimeoutInterval?: number;\n\n /**\n * The max queue size for capping the number of envelopes waiting to be sent by Transport.\n */\n maxQueueSize?: number;\n\n /**\n * When enabled and a user experiences an error, Sentry provides the ability to take a screenshot and include it as an attachment.\n *\n * @default false\n */\n attachScreenshot?: boolean;\n\n /**\n * When enabled Sentry includes the current view hierarchy in the error attachments.\n *\n * @default false\n */\n attachViewHierarchy?: boolean;\n\n /**\n * When enabled, Sentry will capture failed XHR/Fetch requests. This option also enabled HTTP Errors on iOS.\n * [Sentry Android Gradle Plugin](https://docs.sentry.io/platforms/android/configuration/integrations/okhttp/)\n * is needed to capture HTTP Errors on Android.\n *\n * @default false\n */\n enableCaptureFailedRequests?: boolean;\n\n /**\n * This option will enable forwarding captured Sentry events to Spotlight.\n *\n * More details: https://spotlightjs.com/\n *\n * IMPORTANT: Only set this option to `true` while developing, not in production!\n */\n enableSpotlight?: boolean;\n\n /**\n * This option changes the default Spotlight Sidecar URL.\n *\n * By default, the SDK expects the Sidecar to be running\n * on the same host as React Native Metro Dev Server.\n *\n * More details: https://spotlightjs.com/\n *\n * @default \"http://localhost:8969/stream\"\n */\n spotlightSidecarUrl?: string;\n\n /**\n * Sets a callback which is executed before capturing screenshots. Only\n * relevant if `attachScreenshot` is set to true. When false is returned\n * from the function, no screenshot will be attached.\n */\n beforeScreenshot?: (event: Event, hint: EventHint) => boolean;\n}\n\nexport interface ReactNativeTransportOptions extends BrowserTransportOptions {\n /**\n * @deprecated use `maxQueueSize` in the root of the SDK options.\n */\n bufferSize?: number;\n}\n\n/**\n * Configuration options for the Sentry ReactNative SDK.\n * @see ReactNativeFrontend for more information.\n */\n\nexport interface ReactNativeOptions extends Options<ReactNativeTransportOptions>, BaseReactNativeOptions {}\n\nexport interface ReactNativeClientOptions\n extends Omit<ClientOptions<ReactNativeTransportOptions>, 'tunnel'>,\n BaseReactNativeOptions {}\n\nexport interface ReactNativeWrapperOptions {\n /** Props for the root React profiler */\n profilerProps?: ProfilerProps;\n\n /** Props for the root touch event boundary */\n touchEventBoundaryProps?: TouchEventBoundaryProps;\n}\n\n/**\n * If the user has not explicitly set `enableNativeNagger`\n * the function enables native nagging based on the current\n * environment.\n */\nexport function shouldEnableNativeNagger(userOptions: unknown): boolean {\n if (typeof userOptions === 'boolean') {\n // User can override the default behavior\n return userOptions;\n }\n\n if (Platform.OS === 'web' || Platform.OS === 'windows') {\n // We don't want to nag on known platforms that don't support native\n return false;\n }\n\n const expoConstants = getExpoConstants();\n if (expoConstants && expoConstants.appOwnership === 'expo') {\n // If the app is running in Expo Go, we don't want to nag\n return false;\n }\n\n return true;\n}\n"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { EventProcessor, Integration, ThreadCpuProfile } from '@sentry/types';
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFn, ThreadCpuProfile } from '@sentry/types';
|
|
3
2
|
import type { NativeAndroidProfileEvent, NativeProfileEvent } from './nativeTypes';
|
|
4
3
|
import type { AndroidCombinedProfileEvent, CombinedProfileEvent, HermesProfileEvent } from './types';
|
|
5
4
|
/**
|
|
@@ -7,36 +6,13 @@ import type { AndroidCombinedProfileEvent, CombinedProfileEvent, HermesProfileEv
|
|
|
7
6
|
*
|
|
8
7
|
* @experimental
|
|
9
8
|
*/
|
|
10
|
-
export declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
name: string;
|
|
19
|
-
private _getCurrentHub?;
|
|
20
|
-
private _currentProfile;
|
|
21
|
-
private _currentProfileTimeout;
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
setupOnce(_: (e: EventProcessor) => void, getCurrentHub: () => Hub): void;
|
|
26
|
-
private _startCurrentProfileForActiveTransaction;
|
|
27
|
-
private _startCurrentProfile;
|
|
28
|
-
private _shouldStartProfiling;
|
|
29
|
-
/**
|
|
30
|
-
* Starts a new profile and links it to the transaction.
|
|
31
|
-
*/
|
|
32
|
-
private _startNewProfile;
|
|
33
|
-
/**
|
|
34
|
-
* Stops profiling and adds the profile to the queue to be processed on beforeEnvelope.
|
|
35
|
-
*/
|
|
36
|
-
private _finishCurrentProfile;
|
|
37
|
-
private _createProfileEventFor;
|
|
38
|
-
private _clearCurrentProfileTimeout;
|
|
39
|
-
}
|
|
9
|
+
export declare const hermesProfilingIntegration: IntegrationFn;
|
|
10
|
+
/**
|
|
11
|
+
* Profiling integration creates a profile for each transaction and adds it to the event envelope.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Use `hermesProfilingIntegration()` instead.
|
|
14
|
+
*/
|
|
15
|
+
export declare const HermesProfiling: IntegrationClass<Integration>;
|
|
40
16
|
/**
|
|
41
17
|
* Starts Profilers and returns the timestamp when profiling started in nanoseconds.
|
|
42
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../src/js/profiling/integration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../src/js/profiling/integration.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAGV,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAEjB,MAAM,eAAe,CAAC;AASvB,OAAO,KAAK,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnF,OAAO,KAAK,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,kBAAkB,EAAgB,MAAM,SAAS,CAAC;AAYnH;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,aA4KxC,CAAC;AAEF;;;;GAIG;AAEH,eAAO,MAAM,eAAe,+BAGM,CAAC;AAEnC;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAO9C;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,uBAAuB,EAAE,MAAM,GAC9B,oBAAoB,GAAG,2BAA2B,GAAG,IAAI,CAyB3D;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,kBAAkB,EAC1B,aAAa,EAAE,yBAAyB,EACxC,UAAU,EAAE,MAAM,GACjB,2BAA2B,CAQ7B;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,kBAAkB,GACzB,oBAAoB,CAStB;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,gBAAgB,EACxB,uBAAuB,EAAE,MAAM,GAAG,SAAS,GAC1C,oBAAoB,CAAC,SAAS,CAAC,CAkCjC"}
|