@sentry/react-native 5.17.0 → 5.19.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 +69 -0
- package/README.md +1 -1
- package/RNSentry.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +117 -26
- package/android/src/newarch/java/io/sentry/react/RNSentryModule.java +4 -3
- package/android/src/oldarch/java/io/sentry/react/RNSentryModule.java +6 -5
- package/dist/js/NativeRNSentry.d.ts +3 -2
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/NativeRNSentry.js.map +1 -1
- package/dist/js/client.d.ts.map +1 -1
- package/dist/js/client.js +14 -19
- package/dist/js/client.js.map +1 -1
- package/dist/js/index.d.ts +1 -1
- package/dist/js/index.d.ts.map +1 -1
- package/dist/js/index.js +5 -1
- package/dist/js/index.js.map +1 -1
- package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
- package/dist/js/integrations/debugsymbolicator.js +22 -6
- package/dist/js/integrations/debugsymbolicator.js.map +1 -1
- package/dist/js/integrations/default.d.ts.map +1 -1
- package/dist/js/integrations/default.js +6 -0
- package/dist/js/integrations/default.js.map +1 -1
- package/dist/js/integrations/index.d.ts +1 -0
- package/dist/js/integrations/index.d.ts.map +1 -1
- package/dist/js/integrations/index.js +1 -0
- package/dist/js/integrations/index.js.map +1 -1
- package/dist/js/integrations/nativelinkederrors.d.ts +6 -2
- package/dist/js/integrations/nativelinkederrors.d.ts.map +1 -1
- package/dist/js/integrations/nativelinkederrors.js +63 -72
- package/dist/js/integrations/nativelinkederrors.js.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlers.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlers.js +2 -0
- package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
- package/dist/js/integrations/rewriteframes.d.ts +2 -2
- package/dist/js/integrations/rewriteframes.d.ts.map +1 -1
- package/dist/js/integrations/rewriteframes.js.map +1 -1
- package/dist/js/integrations/spotlight.d.ts +18 -0
- package/dist/js/integrations/spotlight.d.ts.map +1 -0
- package/dist/js/integrations/spotlight.js +84 -0
- package/dist/js/integrations/spotlight.js.map +1 -0
- package/dist/js/options.d.ts +19 -0
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/profiling/cache.d.ts +3 -3
- package/dist/js/profiling/cache.d.ts.map +1 -1
- package/dist/js/profiling/cache.js.map +1 -1
- package/dist/js/profiling/integration.d.ts +7 -3
- package/dist/js/profiling/integration.d.ts.map +1 -1
- package/dist/js/profiling/integration.js +16 -5
- package/dist/js/profiling/integration.js.map +1 -1
- package/dist/js/profiling/nativeTypes.d.ts +8 -0
- package/dist/js/profiling/nativeTypes.d.ts.map +1 -1
- package/dist/js/profiling/nativeTypes.js.map +1 -1
- package/dist/js/profiling/types.d.ts +59 -2
- package/dist/js/profiling/types.d.ts.map +1 -1
- package/dist/js/profiling/types.js.map +1 -1
- package/dist/js/profiling/utils.d.ts +9 -5
- package/dist/js/profiling/utils.d.ts.map +1 -1
- package/dist/js/profiling/utils.js +16 -1
- package/dist/js/profiling/utils.js.map +1 -1
- package/dist/js/sdk.d.ts +1 -1
- package/dist/js/sdk.d.ts.map +1 -1
- package/dist/js/sdk.js +3 -2
- package/dist/js/sdk.js.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.js +1 -0
- package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
- package/dist/js/tracing/addTracingExtensions.d.ts.map +1 -1
- package/dist/js/tracing/addTracingExtensions.js.map +1 -1
- package/dist/js/tracing/nativeframes.d.ts.map +1 -1
- package/dist/js/tracing/nativeframes.js +3 -1
- package/dist/js/tracing/nativeframes.js.map +1 -1
- package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
- package/dist/js/tracing/reactnativetracing.js +3 -1
- package/dist/js/tracing/reactnativetracing.js.map +1 -1
- package/dist/js/utils/worldwide.d.ts +2 -0
- package/dist/js/utils/worldwide.d.ts.map +1 -1
- package/dist/js/utils/worldwide.js.map +1 -1
- package/dist/js/utils/xhr.d.ts +20 -0
- package/dist/js/utils/xhr.d.ts.map +1 -0
- package/dist/js/utils/xhr.js +31 -0
- package/dist/js/utils/xhr.js.map +1 -0
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.d.ts +4 -3
- package/dist/js/wrapper.d.ts.map +1 -1
- package/dist/js/wrapper.js +19 -19
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentry.mm +5 -8
- package/package.json +16 -12
- package/scripts/expo-upload-sourcemaps.js +54 -12
- package/scripts/sentry-xcode-debug-files.sh +5 -2
- package/src/js/NativeRNSentry.ts +8 -3
- package/ts3.8/dist/js/NativeRNSentry.d.ts +3 -2
- package/ts3.8/dist/js/index.d.ts +1 -1
- package/ts3.8/dist/js/integrations/index.d.ts +1 -0
- package/ts3.8/dist/js/integrations/nativelinkederrors.d.ts +6 -2
- package/ts3.8/dist/js/integrations/rewriteframes.d.ts +2 -2
- package/ts3.8/dist/js/integrations/spotlight.d.ts +18 -0
- package/ts3.8/dist/js/options.d.ts +19 -0
- package/ts3.8/dist/js/profiling/cache.d.ts +3 -3
- package/ts3.8/dist/js/profiling/integration.d.ts +7 -3
- package/ts3.8/dist/js/profiling/nativeTypes.d.ts +8 -0
- package/ts3.8/dist/js/profiling/types.d.ts +59 -2
- package/ts3.8/dist/js/profiling/utils.d.ts +9 -5
- package/ts3.8/dist/js/sdk.d.ts +1 -1
- package/ts3.8/dist/js/utils/worldwide.d.ts +2 -0
- package/ts3.8/dist/js/utils/xhr.d.ts +20 -0
- package/ts3.8/dist/js/version.d.ts +1 -1
- package/ts3.8/dist/js/wrapper.d.ts +4 -3
package/ts3.8/dist/js/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { Breadcrumb, Request, SdkInfo, Event, Exception, StackFrame, Stacktrace, Thread, User, UserFeedback, } from '@sentry/types';
|
|
2
|
-
export { addGlobalEventProcessor, addBreadcrumb, captureException, captureEvent, captureMessage, getHubFromCarrier, getCurrentHub, Hub, Scope, setContext, setExtra, setExtras, setTag, setTags, setUser, startTransaction, startInactiveSpan, startSpan, startSpanManual, getActiveSpan, } from '@sentry/core';
|
|
2
|
+
export { addGlobalEventProcessor, addBreadcrumb, captureException, captureEvent, captureMessage, getHubFromCarrier, getCurrentHub, Hub, Scope, setContext, setExtra, setExtras, setTag, setTags, setUser, startTransaction, startInactiveSpan, startSpan, startSpanManual, getActiveSpan, spanToJSON, spanIsSampled, setMeasurement, getCurrentScope, getGlobalScope, getIsolationScope, getClient, setCurrentClient, addEventProcessor, metrics, } from '@sentry/core';
|
|
3
3
|
export { Integrations as BrowserIntegrations, ErrorBoundary, withErrorBoundary, createReduxEnhancer, Profiler, useProfiler, withProfiler, } from '@sentry/react';
|
|
4
4
|
export { lastEventId } from '@sentry/browser';
|
|
5
5
|
import * as Integrations from './integrations';
|
|
@@ -7,4 +7,5 @@ export { SdkInfo } from './sdkinfo';
|
|
|
7
7
|
export { ReactNativeInfo } from './reactnativeinfo';
|
|
8
8
|
export { ModulesLoader } from './modulesloader';
|
|
9
9
|
export { HermesProfiling } from '../profiling/integration';
|
|
10
|
+
export { Spotlight } from './spotlight';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventProcessor, Hub, Integration } from '@sentry/types';
|
|
1
|
+
import type { Client, Event, EventHint, EventProcessor, Hub, Integration } from '@sentry/types';
|
|
2
2
|
interface LinkedErrorsOptions {
|
|
3
3
|
key: string;
|
|
4
4
|
limit: number;
|
|
@@ -25,7 +25,11 @@ export declare class NativeLinkedErrors implements Integration {
|
|
|
25
25
|
/**
|
|
26
26
|
* @inheritDoc
|
|
27
27
|
*/
|
|
28
|
-
setupOnce(
|
|
28
|
+
setupOnce(_addGlobalEventProcessor: (callback: EventProcessor) => void, _getCurrentHub: () => Hub): void;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
preprocessEvent(event: Event, hint: EventHint | undefined, client: Client): void;
|
|
29
33
|
/**
|
|
30
34
|
* Enriches passed event with linked exceptions and native debug meta images.
|
|
31
35
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Integration } from '@sentry/types';
|
|
2
2
|
export declare const ANDROID_DEFAULT_BUNDLE_NAME = "app:///index.android.bundle";
|
|
3
3
|
export declare const IOS_DEFAULT_BUNDLE_NAME = "app:///main.jsbundle";
|
|
4
4
|
/**
|
|
@@ -7,5 +7,5 @@ export declare const IOS_DEFAULT_BUNDLE_NAME = "app:///main.jsbundle";
|
|
|
7
7
|
* and removes file://, 'address at' prefixes, CodePush postfix,
|
|
8
8
|
* and Expo bundle postfix.
|
|
9
9
|
*/
|
|
10
|
-
export declare function createReactNativeRewriteFrames():
|
|
10
|
+
export declare function createReactNativeRewriteFrames(): Integration;
|
|
11
11
|
//# sourceMappingURL=rewriteframes.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Integration } from '@sentry/types';
|
|
2
|
+
type SpotlightReactNativeIntegrationOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* The URL of the Sidecar instance to connect and forward events to.
|
|
5
|
+
* If not set, Spotlight will try to connect to the Sidecar running on localhost:8969.
|
|
6
|
+
*
|
|
7
|
+
* @default "http://localhost:8969/stream"
|
|
8
|
+
*/
|
|
9
|
+
sidecarUrl?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Use this integration to send errors and transactions to Spotlight.
|
|
13
|
+
*
|
|
14
|
+
* Learn more about spotlight at https://spotlightjs.com
|
|
15
|
+
*/
|
|
16
|
+
export declare function Spotlight({ sidecarUrl, }?: SpotlightReactNativeIntegrationOptions): Integration;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=spotlight.d.ts.map
|
|
@@ -134,6 +134,25 @@ export interface BaseReactNativeOptions {
|
|
|
134
134
|
* @default false
|
|
135
135
|
*/
|
|
136
136
|
enableCaptureFailedRequests?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* This option will enable forwarding captured Sentry events to Spotlight.
|
|
139
|
+
*
|
|
140
|
+
* More details: https://spotlightjs.com/
|
|
141
|
+
*
|
|
142
|
+
* IMPORTANT: Only set this option to `true` while developing, not in production!
|
|
143
|
+
*/
|
|
144
|
+
enableSpotlight?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* This option changes the default Spotlight Sidecar URL.
|
|
147
|
+
*
|
|
148
|
+
* By default, the SDK expects the Sidecar to be running
|
|
149
|
+
* on the same host as React Native Metro Dev Server.
|
|
150
|
+
*
|
|
151
|
+
* More details: https://spotlightjs.com/
|
|
152
|
+
*
|
|
153
|
+
* @default "http://localhost:8969/stream"
|
|
154
|
+
*/
|
|
155
|
+
spotlightSidecarUrl?: string;
|
|
137
156
|
}
|
|
138
157
|
export interface ReactNativeTransportOptions extends BrowserTransportOptions {
|
|
139
158
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { CombinedProfileEvent } from './types';
|
|
1
|
+
import type { AndroidCombinedProfileEvent, CombinedProfileEvent } from './types';
|
|
2
2
|
export declare const PROFILE_QUEUE: {
|
|
3
|
-
get: (key: string) => CombinedProfileEvent | undefined;
|
|
4
|
-
add: (key: string, value: CombinedProfileEvent) => void;
|
|
3
|
+
get: (key: string) => AndroidCombinedProfileEvent | CombinedProfileEvent | undefined;
|
|
4
|
+
add: (key: string, value: AndroidCombinedProfileEvent | CombinedProfileEvent) => void;
|
|
5
5
|
delete: (key: string) => boolean;
|
|
6
6
|
clear: () => void;
|
|
7
7
|
size: () => number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Hub } from '@sentry/core';
|
|
2
2
|
import type { EventProcessor, Integration, ThreadCpuProfile } from '@sentry/types';
|
|
3
|
-
import type { NativeProfileEvent } from './nativeTypes';
|
|
4
|
-
import type { CombinedProfileEvent, HermesProfileEvent } from './types';
|
|
3
|
+
import type { NativeAndroidProfileEvent, NativeProfileEvent } from './nativeTypes';
|
|
4
|
+
import type { AndroidCombinedProfileEvent, CombinedProfileEvent, HermesProfileEvent } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* Profiling integration creates a profile for each transaction and adds it to the event envelope.
|
|
7
7
|
*
|
|
@@ -44,7 +44,11 @@ export declare function startProfiling(): number | null;
|
|
|
44
44
|
/**
|
|
45
45
|
* Stops Profilers and returns collected combined profile.
|
|
46
46
|
*/
|
|
47
|
-
export declare function stopProfiling(): CombinedProfileEvent | null;
|
|
47
|
+
export declare function stopProfiling(profileStartTimestampNs: number): CombinedProfileEvent | AndroidCombinedProfileEvent | null;
|
|
48
|
+
/**
|
|
49
|
+
* Creates Android profile event with attached javascript profile.
|
|
50
|
+
*/
|
|
51
|
+
export declare function createAndroidWithHermesProfile(hermes: HermesProfileEvent, nativeAndroid: NativeAndroidProfileEvent, durationNs: number): AndroidCombinedProfileEvent;
|
|
48
52
|
/**
|
|
49
53
|
* Merges Hermes and Native profile events into one.
|
|
50
54
|
*/
|
|
@@ -40,4 +40,12 @@ export interface NativeProfileEvent {
|
|
|
40
40
|
}[];
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
+
export interface NativeAndroidProfileEvent {
|
|
44
|
+
sampled_profile: string;
|
|
45
|
+
android_api_level: number;
|
|
46
|
+
/**
|
|
47
|
+
* Proguard mapping file hash
|
|
48
|
+
*/
|
|
49
|
+
build_id?: string;
|
|
50
|
+
}
|
|
43
51
|
//# sourceMappingURL=nativeTypes.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Profile, ThreadCpuFrame, ThreadCpuProfile } from '@sentry/types';
|
|
1
|
+
import type { DebugImage, MeasurementUnit, Profile, ThreadCpuFrame, ThreadCpuProfile } from '@sentry/types';
|
|
2
2
|
import type { NativeProfileEvent } from './nativeTypes';
|
|
3
3
|
export interface RawThreadCpuProfile extends ThreadCpuProfile {
|
|
4
4
|
frames: ThreadCpuFrame[];
|
|
@@ -13,6 +13,63 @@ export type HermesProfileEvent = {
|
|
|
13
13
|
active_thread_id: string;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export type
|
|
16
|
+
export type AndroidCombinedProfileEvent = {
|
|
17
|
+
platform: 'android';
|
|
18
|
+
/**
|
|
19
|
+
* Proguard debug meta image uuid
|
|
20
|
+
*/
|
|
21
|
+
build_id?: string | undefined;
|
|
22
|
+
sampled_profile: string;
|
|
23
|
+
js_profile: ThreadCpuProfile;
|
|
24
|
+
android_api_level: number;
|
|
25
|
+
duration_ns: string;
|
|
26
|
+
active_thread_id: string;
|
|
27
|
+
};
|
|
28
|
+
export type AndroidProfileEvent = {
|
|
29
|
+
sampled_profile: string;
|
|
30
|
+
/**
|
|
31
|
+
* Currently used only for JS
|
|
32
|
+
*/
|
|
33
|
+
debug_meta?: {
|
|
34
|
+
images: DebugImage[];
|
|
35
|
+
};
|
|
36
|
+
js_profile: ThreadCpuProfile;
|
|
37
|
+
android_api_level: number;
|
|
38
|
+
/**
|
|
39
|
+
* Proguard debug meta image uuid
|
|
40
|
+
*/
|
|
41
|
+
build_id: string;
|
|
42
|
+
device_cpu_frequencies: number[];
|
|
43
|
+
device_is_emulator: boolean;
|
|
44
|
+
device_locale: string;
|
|
45
|
+
device_manufacturer: string;
|
|
46
|
+
device_model: string;
|
|
47
|
+
device_os_name: string;
|
|
48
|
+
device_os_version: string;
|
|
49
|
+
device_physical_memory_bytes: string;
|
|
50
|
+
environment: string;
|
|
51
|
+
platform: 'android';
|
|
52
|
+
profile_id: string;
|
|
53
|
+
timestamp: string;
|
|
54
|
+
release: string;
|
|
55
|
+
dist: string;
|
|
56
|
+
version_code: string;
|
|
57
|
+
version_name: string;
|
|
58
|
+
transaction_id: string;
|
|
59
|
+
transaction_name: string;
|
|
60
|
+
trace_id: string;
|
|
61
|
+
duration_ns: string;
|
|
62
|
+
active_thread_id: string;
|
|
63
|
+
measurements?: Record<string, {
|
|
64
|
+
unit: MeasurementUnit;
|
|
65
|
+
values: {
|
|
66
|
+
elapsed_since_start_ns: number;
|
|
67
|
+
value: number;
|
|
68
|
+
}[];
|
|
69
|
+
}>;
|
|
70
|
+
transaction_metadata?: Record<string, string>;
|
|
71
|
+
transaction_tags?: Record<string, string>;
|
|
72
|
+
};
|
|
73
|
+
export type ProfileEvent = Profile | AndroidProfileEvent;
|
|
17
74
|
export type CombinedProfileEvent = HermesProfileEvent & Partial<NativeProfileEvent>;
|
|
18
75
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Envelope, Event,
|
|
2
|
-
import type { CombinedProfileEvent, HermesProfileEvent, RawThreadCpuProfile } from './types';
|
|
1
|
+
import type { Envelope, Event, ThreadCpuProfile } from '@sentry/types';
|
|
2
|
+
import type { AndroidCombinedProfileEvent, AndroidProfileEvent, CombinedProfileEvent, HermesProfileEvent, ProfileEvent, RawThreadCpuProfile } from './types';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
@@ -15,9 +15,13 @@ export declare function findProfiledTransactionsFromEnvelope(envelope: Envelope)
|
|
|
15
15
|
/**
|
|
16
16
|
* Creates a profiling envelope item, if the profile does not pass validation, returns null.
|
|
17
17
|
* @param event
|
|
18
|
-
* @returns {
|
|
18
|
+
* @returns {ProfileEvent | null}
|
|
19
19
|
*/
|
|
20
|
-
export declare function enrichCombinedProfileWithEventContext(profile_id: string, profile: CombinedProfileEvent, event: Event):
|
|
20
|
+
export declare function enrichCombinedProfileWithEventContext(profile_id: string, profile: CombinedProfileEvent | AndroidCombinedProfileEvent, event: Event): ProfileEvent | null;
|
|
21
|
+
/**
|
|
22
|
+
* Creates Android profiling envelope item.
|
|
23
|
+
*/
|
|
24
|
+
export declare function enrichAndroidProfileWithEventContext(profile_id: string, profile: AndroidCombinedProfileEvent, event: Event): AndroidProfileEvent | null;
|
|
21
25
|
/**
|
|
22
26
|
* Creates profiling event compatible carrier Object from raw Hermes profile.
|
|
23
27
|
*/
|
|
@@ -26,5 +30,5 @@ export declare function createHermesProfilingEvent(profile: RawThreadCpuProfile)
|
|
|
26
30
|
* Adds items to envelope if they are not already present - mutates the envelope.
|
|
27
31
|
* @param envelope
|
|
28
32
|
*/
|
|
29
|
-
export declare function addProfilesToEnvelope(envelope: Envelope, profiles:
|
|
33
|
+
export declare function addProfilesToEnvelope(envelope: Envelope, profiles: ProfileEvent[]): Envelope;
|
|
30
34
|
//# sourceMappingURL=utils.d.ts.map
|
package/ts3.8/dist/js/sdk.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare function captureUserFeedback(feedback: UserFeedback): void;
|
|
|
54
54
|
*
|
|
55
55
|
* @param callback that will be enclosed into push/popScope.
|
|
56
56
|
*/
|
|
57
|
-
export declare function withScope(callback: (scope: Scope) =>
|
|
57
|
+
export declare function withScope<T>(callback: (scope: Scope) => T): T | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Callback to set context information onto the scope.
|
|
60
60
|
* @param callback Callback function that receives Scope.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react-native" />
|
|
1
2
|
import type { InternalGlobal } from '@sentry/utils';
|
|
2
3
|
import type { ErrorUtils } from 'react-native/types';
|
|
3
4
|
import type { ExpoGlobalObject } from './expoglobalobject';
|
|
@@ -13,6 +14,7 @@ export interface ReactNativeInternalGlobal extends InternalGlobal {
|
|
|
13
14
|
nativeFabricUIManager: unknown;
|
|
14
15
|
ErrorUtils?: ErrorUtils;
|
|
15
16
|
expo?: ExpoGlobalObject;
|
|
17
|
+
XMLHttpRequest?: typeof XMLHttpRequest;
|
|
16
18
|
}
|
|
17
19
|
/** Get's the global object for the current JavaScript runtime */
|
|
18
20
|
export declare const RN_GLOBAL_OBJ: ReactNativeInternalGlobal;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react-native" />
|
|
2
|
+
/**
|
|
3
|
+
* The DONE ready state for XmlHttpRequest
|
|
4
|
+
*
|
|
5
|
+
* Defining it here as a constant b/c XMLHttpRequest.DONE is not always defined
|
|
6
|
+
* (e.g. during testing, it is `undefined`)
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState}
|
|
9
|
+
*/
|
|
10
|
+
export declare const XHR_READYSTATE_DONE = 4;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new XMLHttpRequest object which is not instrumented by the SDK.
|
|
13
|
+
*
|
|
14
|
+
* This request won't be captured by the HttpClient Errors integration
|
|
15
|
+
* and won't be added to breadcrumbs and won't be traced.
|
|
16
|
+
*/
|
|
17
|
+
export declare function createStealthXhr(customGlobal?: {
|
|
18
|
+
XMLHttpRequest?: typeof XMLHttpRequest;
|
|
19
|
+
}): XMLHttpRequest | null;
|
|
20
|
+
//# sourceMappingURL=xhr.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { Platform } from 'react-native';
|
|
|
3
3
|
import type { NativeAppStartResponse, NativeDeviceContextsResponse, NativeFramesResponse, NativeReleaseResponse, NativeStackFrames, Spec } from './NativeRNSentry';
|
|
4
4
|
import type { ReactNativeClientOptions } from './options';
|
|
5
5
|
import type * as Hermes from './profiling/hermes';
|
|
6
|
-
import type { NativeProfileEvent } from './profiling/nativeTypes';
|
|
6
|
+
import type { NativeAndroidProfileEvent, NativeProfileEvent } from './profiling/nativeTypes';
|
|
7
7
|
export interface Screenshot {
|
|
8
8
|
data: Uint8Array;
|
|
9
9
|
contentType: string;
|
|
@@ -51,12 +51,13 @@ interface SentryNativeWrapper {
|
|
|
51
51
|
stopProfiling(): {
|
|
52
52
|
hermesProfile: Hermes.Profile;
|
|
53
53
|
nativeProfile?: NativeProfileEvent;
|
|
54
|
+
androidProfile?: NativeAndroidProfileEvent;
|
|
54
55
|
} | null;
|
|
55
|
-
fetchNativePackageName():
|
|
56
|
+
fetchNativePackageName(): string | null;
|
|
56
57
|
/**
|
|
57
58
|
* Fetches native stack frames and debug images for the instructions addresses.
|
|
58
59
|
*/
|
|
59
|
-
fetchNativeStackFramesBy(instructionsAddr: number[]):
|
|
60
|
+
fetchNativeStackFramesBy(instructionsAddr: number[]): NativeStackFrames | null;
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
62
63
|
* Our internal interface for calling native functions
|