@sentry/react-native 5.3.1 → 5.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/README.md +7 -8
- package/RNSentry.podspec +1 -1
- package/android/build.gradle +1 -1
- package/dist/js/NativeRNSentry.d.ts +1 -1
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/NativeRNSentry.js.map +1 -1
- package/dist/js/breadcrumb.js +3 -3
- package/dist/js/breadcrumb.js.map +1 -1
- package/dist/js/client.d.ts.map +1 -1
- package/dist/js/client.js +4 -0
- package/dist/js/client.js.map +1 -1
- package/dist/js/integrations/sdkinfo.d.ts +1 -1
- package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
- package/dist/js/integrations/sdkinfo.js +11 -8
- package/dist/js/integrations/sdkinfo.js.map +1 -1
- package/dist/js/options.js +1 -0
- package/dist/js/scope.d.ts.map +1 -1
- package/dist/js/scope.js +6 -3
- package/dist/js/scope.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.map +1 -1
- package/dist/js/touchevents.d.ts +1 -1
- package/dist/js/touchevents.d.ts.map +1 -1
- package/dist/js/tracing/reactnativenavigation.d.ts +1 -1
- package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnativenavigation.js.map +1 -1
- package/dist/js/tracing/reactnativetracing.d.ts +1 -1
- package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
- package/dist/js/tracing/reactnativetracing.js +1 -2
- package/dist/js/tracing/reactnativetracing.js.map +1 -1
- package/dist/js/tracing/types.js +1 -0
- package/dist/js/tracing/utils.d.ts.map +1 -1
- package/dist/js/transports/TextEncoder.d.ts.map +1 -1
- package/dist/js/user.js +1 -0
- package/dist/js/utils/normalize.d.ts +5 -0
- package/dist/js/utils/normalize.d.ts.map +1 -0
- package/dist/js/utils/normalize.js +17 -0
- package/dist/js/utils/normalize.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.map +1 -1
- package/dist/js/wrapper.js +9 -4
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentry.mm +26 -1
- package/ios/RNSentry.xcodeproj/project.pbxproj +472 -0
- package/package.json +23 -15
- package/sentry.gradle +4 -1
- package/src/js/NativeRNSentry.ts +1 -1
- package/ts3.8/dist/js/NativeRNSentry.d.ts +80 -0
- package/ts3.8/dist/js/breadcrumb.d.ts +11 -0
- package/ts3.8/dist/js/client.d.ts +59 -0
- package/ts3.8/dist/js/index.d.ts +13 -0
- package/ts3.8/dist/js/integrations/debugsymbolicator.d.ts +49 -0
- package/ts3.8/dist/js/integrations/devicecontext.d.ts +17 -0
- package/ts3.8/dist/js/integrations/eventorigin.d.ts +17 -0
- package/ts3.8/dist/js/integrations/factory.d.ts +7 -0
- package/ts3.8/dist/js/integrations/index.d.ts +9 -0
- package/ts3.8/dist/js/integrations/modulesloader.d.ts +17 -0
- package/ts3.8/dist/js/integrations/reactnativeerrorhandlers.d.ts +54 -0
- package/ts3.8/dist/js/integrations/reactnativeinfo.d.ts +23 -0
- package/ts3.8/dist/js/integrations/release.d.ts +17 -0
- package/ts3.8/dist/js/integrations/rewriteframes.d.ts +8 -0
- package/ts3.8/dist/js/integrations/screenshot.d.ts +23 -0
- package/ts3.8/dist/js/integrations/sdkinfo.d.ts +21 -0
- package/ts3.8/dist/js/integrations/viewhierarchy.d.ts +20 -0
- package/ts3.8/dist/js/measurements.d.ts +13 -0
- package/ts3.8/dist/js/misc.d.ts +9 -0
- package/ts3.8/dist/js/options.d.ts +152 -0
- package/ts3.8/dist/js/scope.d.ts +54 -0
- package/ts3.8/dist/js/sdk.d.ts +63 -0
- package/ts3.8/dist/js/touchevents.d.ts +71 -0
- package/ts3.8/dist/js/tracing/gesturetracing.d.ts +20 -0
- package/ts3.8/dist/js/tracing/index.d.ts +10 -0
- package/ts3.8/dist/js/tracing/nativeframes.d.ts +64 -0
- package/ts3.8/dist/js/tracing/ops.d.ts +8 -0
- package/ts3.8/dist/js/tracing/reactnativenavigation.d.ts +85 -0
- package/ts3.8/dist/js/tracing/reactnativeprofiler.d.ts +12 -0
- package/ts3.8/dist/js/tracing/reactnativetracing.d.ts +142 -0
- package/ts3.8/dist/js/tracing/reactnavigation.d.ts +83 -0
- package/ts3.8/dist/js/tracing/reactnavigationv4.d.ts +92 -0
- package/ts3.8/dist/js/tracing/routingInstrumentation.d.ts +52 -0
- package/ts3.8/dist/js/tracing/stalltracking.d.ts +94 -0
- package/ts3.8/dist/js/tracing/transaction.d.ts +7 -0
- package/ts3.8/dist/js/tracing/types.d.ts +29 -0
- package/ts3.8/dist/js/tracing/utils.d.ts +27 -0
- package/ts3.8/dist/js/transports/TextEncoder.d.ts +3 -0
- package/ts3.8/dist/js/transports/native.d.ts +39 -0
- package/ts3.8/dist/js/user.d.ts +6 -0
- package/ts3.8/dist/js/utils/envelope.d.ts +12 -0
- package/ts3.8/dist/js/utils/environment.d.ts +7 -0
- package/ts3.8/dist/js/utils/ignorerequirecyclelogs.d.ts +5 -0
- package/ts3.8/dist/js/utils/normalize.d.ts +5 -0
- package/ts3.8/dist/js/utils/outcome.d.ts +6 -0
- package/ts3.8/dist/js/utils/safe.d.ts +21 -0
- package/ts3.8/dist/js/utils/worldwide.d.ts +15 -0
- package/ts3.8/dist/js/vendor/buffer/index.d.ts +2 -0
- package/ts3.8/dist/js/vendor/buffer/utf8ToBytes.d.ts +5 -0
- package/ts3.8/dist/js/vendor/index.d.ts +2 -0
- package/ts3.8/dist/js/version.d.ts +4 -0
- package/ts3.8/dist/js/wrapper.d.ts +55 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { IdleTransaction, Transaction } from '@sentry/core';
|
|
2
|
+
import type { Measurements, MeasurementUnit } from '@sentry/types';
|
|
3
|
+
import { STALL_COUNT, STALL_LONGEST_TIME, STALL_TOTAL_TIME } from '../measurements';
|
|
4
|
+
export interface StallMeasurements extends Measurements {
|
|
5
|
+
[STALL_COUNT]: {
|
|
6
|
+
value: number;
|
|
7
|
+
unit: MeasurementUnit;
|
|
8
|
+
};
|
|
9
|
+
[STALL_TOTAL_TIME]: {
|
|
10
|
+
value: number;
|
|
11
|
+
unit: MeasurementUnit;
|
|
12
|
+
};
|
|
13
|
+
[STALL_LONGEST_TIME]: {
|
|
14
|
+
value: number;
|
|
15
|
+
unit: MeasurementUnit;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare type StallTrackingOptions = {
|
|
19
|
+
/**
|
|
20
|
+
* How long in milliseconds an event loop iteration can be delayed for before being considered a "stall."
|
|
21
|
+
* @default 100
|
|
22
|
+
*/
|
|
23
|
+
minimumStallThreshold: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Stall measurement tracker inspired by the `JSEventLoopWatchdog` used internally in React Native:
|
|
27
|
+
* https://github.com/facebook/react-native/blob/006f5afe120c290a37cf6ff896748fbc062bf7ed/Libraries/Interaction/JSEventLoopWatchdog.js
|
|
28
|
+
*
|
|
29
|
+
* However, we modified the interval implementation to instead have a fixed loop timeout interval of `LOOP_TIMEOUT_INTERVAL_MS`.
|
|
30
|
+
* We then would consider that iteration a stall when the total time for that interval to run is greater than `LOOP_TIMEOUT_INTERVAL_MS + minimumStallThreshold`
|
|
31
|
+
*/
|
|
32
|
+
export declare class StallTrackingInstrumentation {
|
|
33
|
+
isTracking: boolean;
|
|
34
|
+
private _minimumStallThreshold;
|
|
35
|
+
/** Total amount of time of all stalls that occurred during the current tracking session */
|
|
36
|
+
private _totalStallTime;
|
|
37
|
+
/** Total number of stalls that occurred during the current tracking session */
|
|
38
|
+
private _stallCount;
|
|
39
|
+
/** The last timestamp the iteration ran in milliseconds */
|
|
40
|
+
private _lastIntervalMs;
|
|
41
|
+
private _timeout;
|
|
42
|
+
private _statsByTransaction;
|
|
43
|
+
constructor(options?: StallTrackingOptions);
|
|
44
|
+
/**
|
|
45
|
+
* @inheritDoc
|
|
46
|
+
* Not used for this integration. Instead call `registerTransactionStart` to start tracking.
|
|
47
|
+
*/
|
|
48
|
+
setupOnce(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Register a transaction as started. Starts stall tracking if not already running.
|
|
51
|
+
* @returns A finish method that returns the stall measurements.
|
|
52
|
+
*/
|
|
53
|
+
onTransactionStart(transaction: Transaction): void;
|
|
54
|
+
/**
|
|
55
|
+
* Logs a transaction as finished.
|
|
56
|
+
* Stops stall tracking if no more transactions are running.
|
|
57
|
+
* @returns The stall measurements
|
|
58
|
+
*/
|
|
59
|
+
onTransactionFinish(transaction: Transaction | IdleTransaction, passedEndTimestamp?: number): void;
|
|
60
|
+
/**
|
|
61
|
+
* Logs the finish time of the span for use in `trimEnd: true` transactions.
|
|
62
|
+
*/
|
|
63
|
+
private _markSpanFinish;
|
|
64
|
+
/**
|
|
65
|
+
* Get the current stats for a transaction at a given time.
|
|
66
|
+
*/
|
|
67
|
+
private _getCurrentStats;
|
|
68
|
+
/**
|
|
69
|
+
* Start tracking stalls
|
|
70
|
+
*/
|
|
71
|
+
private _startTracking;
|
|
72
|
+
/**
|
|
73
|
+
* Stops the stall tracking interval and calls reset().
|
|
74
|
+
*/
|
|
75
|
+
private _stopTracking;
|
|
76
|
+
/**
|
|
77
|
+
* Will stop tracking if there are no more transactions.
|
|
78
|
+
*/
|
|
79
|
+
private _shouldStopTracking;
|
|
80
|
+
/**
|
|
81
|
+
* Clears all the collected stats
|
|
82
|
+
*/
|
|
83
|
+
private _reset;
|
|
84
|
+
/**
|
|
85
|
+
* Iteration of the stall tracking interval. Measures how long the timer strayed from its expected time of running, and how
|
|
86
|
+
* long the stall is for.
|
|
87
|
+
*/
|
|
88
|
+
private _iteration;
|
|
89
|
+
/**
|
|
90
|
+
* Deletes leaked transactions (Earliest transactions when we have more than MAX_RUNNING_TRANSACTIONS transactions.)
|
|
91
|
+
*/
|
|
92
|
+
private _flushLeakedTransactions;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=stalltracking.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BeforeFinishCallback } from '@sentry/core/types/tracing/idletransaction';
|
|
2
|
+
/**
|
|
3
|
+
* Idle Transaction callback to only sample transactions with child spans.
|
|
4
|
+
* To avoid side effects of other callbacks this should be hooked as the last callback.
|
|
5
|
+
*/
|
|
6
|
+
export declare const onlySampleIfChildSpans: BeforeFinishCallback;
|
|
7
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TransactionContext } from '@sentry/types';
|
|
2
|
+
export interface ReactNavigationRoute {
|
|
3
|
+
name: string;
|
|
4
|
+
key: string;
|
|
5
|
+
params: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
export interface ReactNavigationCurrentRoute extends ReactNavigationRoute {
|
|
8
|
+
hasBeenSeen: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare type RouteChangeContextData = {
|
|
11
|
+
previousRoute?: {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
name: string;
|
|
14
|
+
} | null;
|
|
15
|
+
route: {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
name: string;
|
|
18
|
+
hasBeenSeen: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export interface ReactNavigationTransactionContext extends TransactionContext {
|
|
22
|
+
tags: {
|
|
23
|
+
'routing.instrumentation': string;
|
|
24
|
+
'routing.route.name': string;
|
|
25
|
+
};
|
|
26
|
+
data: RouteChangeContextData;
|
|
27
|
+
}
|
|
28
|
+
export declare type BeforeNavigate = (context: TransactionContext) => TransactionContext;
|
|
29
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { IdleTransaction, Span, Transaction } from '@sentry/core';
|
|
2
|
+
import type { TransactionContext, TransactionSource } from '@sentry/types';
|
|
3
|
+
export declare const defaultTransactionSource: TransactionSource;
|
|
4
|
+
export declare const customTransactionSource: TransactionSource;
|
|
5
|
+
export declare const getBlankTransactionContext: (name: string) => TransactionContext;
|
|
6
|
+
/**
|
|
7
|
+
* A margin of error of 50ms is allowed for the async native bridge call.
|
|
8
|
+
* Anything larger would reduce the accuracy of our frames measurements.
|
|
9
|
+
*/
|
|
10
|
+
export declare const MARGIN_OF_ERROR_SECONDS = 0.05;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export declare function adjustTransactionDuration(maxDurationMs: number, transaction: IdleTransaction, endTimestamp: number): void;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the timestamp where the JS global scope was initialized.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getTimeOriginMilliseconds(): number;
|
|
19
|
+
/**
|
|
20
|
+
* Calls the callback every time a child span of the transaction is finished.
|
|
21
|
+
*/
|
|
22
|
+
export declare function instrumentChildSpanFinish(transaction: Transaction, callback: (span: Span, endTimestamp?: number) => void): void;
|
|
23
|
+
/**
|
|
24
|
+
* Determines if the timestamp is now or within the specified margin of error from now.
|
|
25
|
+
*/
|
|
26
|
+
export declare function isNearToNow(timestamp: number): boolean;
|
|
27
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { BaseTransportOptions, Envelope, Transport } from '@sentry/types';
|
|
2
|
+
import type { PromiseBuffer } from '@sentry/utils';
|
|
3
|
+
export declare const DEFAULT_BUFFER_SIZE = 30;
|
|
4
|
+
export declare type BaseNativeTransport = BaseTransportOptions;
|
|
5
|
+
export interface BaseNativeTransportOptions {
|
|
6
|
+
bufferSize?: number;
|
|
7
|
+
}
|
|
8
|
+
/** Native Transport class implementation */
|
|
9
|
+
export declare class NativeTransport implements Transport {
|
|
10
|
+
/** A simple buffer holding all requests. */
|
|
11
|
+
protected readonly _buffer: PromiseBuffer<void>;
|
|
12
|
+
constructor(options?: BaseNativeTransportOptions);
|
|
13
|
+
/**
|
|
14
|
+
* Sends the envelope to the Store endpoint in Sentry.
|
|
15
|
+
*
|
|
16
|
+
* @param envelope Envelope that should be sent to Sentry.
|
|
17
|
+
*/
|
|
18
|
+
send(envelope: Envelope): PromiseLike<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Wait for all envelopes to be sent or the timeout to expire, whichever comes first.
|
|
21
|
+
*
|
|
22
|
+
* @param timeout Maximum time in ms the transport should wait for envelopes to be flushed. Omitting this parameter will
|
|
23
|
+
* cause the transport to wait until all events are sent before resolving the promise.
|
|
24
|
+
* @returns A promise that will resolve with `true` if all events are sent before the timeout, or `false` if there are
|
|
25
|
+
* still events in the queue when the timeout is reached.
|
|
26
|
+
*/
|
|
27
|
+
flush(timeout?: number): PromiseLike<boolean>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Creates a Native Transport.
|
|
31
|
+
*/
|
|
32
|
+
export declare function makeNativeTransport(options?: BaseNativeTransportOptions): NativeTransport;
|
|
33
|
+
/**
|
|
34
|
+
* Creates a Native Transport factory if the native transport is available.
|
|
35
|
+
*/
|
|
36
|
+
export declare function makeNativeTransportFactory({ enableNative, }: {
|
|
37
|
+
enableNative?: boolean;
|
|
38
|
+
}): typeof makeNativeTransport | null;
|
|
39
|
+
//# sourceMappingURL=native.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DsnComponents, EventEnvelope, SdkMetadata, UserFeedback } from '@sentry/types';
|
|
2
|
+
export declare const header = 0;
|
|
3
|
+
export declare const items = 1;
|
|
4
|
+
/**
|
|
5
|
+
* Creates an envelope from a user feedback.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createUserFeedbackEnvelope(feedback: UserFeedback, { metadata, tunnel, dsn, }: {
|
|
8
|
+
metadata: SdkMetadata | undefined;
|
|
9
|
+
tunnel: string | undefined;
|
|
10
|
+
dsn: DsnComponents | undefined;
|
|
11
|
+
}): EventEnvelope;
|
|
12
|
+
//# sourceMappingURL=envelope.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Checks if the React Native Hermes engine is running */
|
|
2
|
+
export declare function isHermesEnabled(): boolean;
|
|
3
|
+
/** Checks if the React Native TurboModules are enabled */
|
|
4
|
+
export declare function isTurboModuleEnabled(): boolean;
|
|
5
|
+
/** Checks if the React Native Fabric renderer is running */
|
|
6
|
+
export declare function isFabricEnabled(): boolean;
|
|
7
|
+
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNativeOptions } from '../options';
|
|
2
|
+
declare type DangerTypesWithoutCallSignature = Object | null | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Returns callback factory wrapped with try/catch
|
|
5
|
+
* or the original passed value is it's not a function.
|
|
6
|
+
*
|
|
7
|
+
* If the factory fails original data are returned as it.
|
|
8
|
+
* They might be partially modified by the failed function.
|
|
9
|
+
*/
|
|
10
|
+
export declare function safeFactory<A extends [
|
|
11
|
+
R,
|
|
12
|
+
...unknown[]
|
|
13
|
+
], R, T extends DangerTypesWithoutCallSignature>(danger: ((...args: A) => R) | T, options?: {
|
|
14
|
+
loggerMessage?: string;
|
|
15
|
+
}): ((...args: A) => R) | T;
|
|
16
|
+
/**
|
|
17
|
+
* Returns sage tracesSampler that returns 0 if the original failed.
|
|
18
|
+
*/
|
|
19
|
+
export declare function safeTracesSampler(tracesSampler: ReactNativeOptions['tracesSampler']): ReactNativeOptions['tracesSampler'];
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=safe.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InternalGlobal } from '@sentry/utils';
|
|
2
|
+
import type { ErrorUtils } from 'react-native/types';
|
|
3
|
+
/** Internal Global object interface with common and Sentry specific properties */
|
|
4
|
+
export interface ReactNativeInternalGlobal extends InternalGlobal {
|
|
5
|
+
__sentry_rn_v4_registered?: boolean;
|
|
6
|
+
__sentry_rn_v5_registered?: boolean;
|
|
7
|
+
HermesInternal: unknown;
|
|
8
|
+
Promise: unknown;
|
|
9
|
+
__turboModuleProxy: unknown;
|
|
10
|
+
nativeFabricUIManager: unknown;
|
|
11
|
+
ErrorUtils?: ErrorUtils;
|
|
12
|
+
}
|
|
13
|
+
/** Get's the global object for the current JavaScript runtime */
|
|
14
|
+
export declare const RN_GLOBAL_OBJ: ReactNativeInternalGlobal;
|
|
15
|
+
//# sourceMappingURL=worldwide.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Breadcrumb, Envelope, EnvelopeItem, Event, Package, SeverityLevel, User } from '@sentry/types';
|
|
2
|
+
import { Platform } from 'react-native';
|
|
3
|
+
import type { NativeAppStartResponse, NativeDeviceContextsResponse, NativeFramesResponse, NativeReleaseResponse, Spec } from './NativeRNSentry';
|
|
4
|
+
import type { ReactNativeClientOptions } from './options';
|
|
5
|
+
export interface Screenshot {
|
|
6
|
+
data: Uint8Array;
|
|
7
|
+
contentType: string;
|
|
8
|
+
filename: string;
|
|
9
|
+
}
|
|
10
|
+
interface SentryNativeWrapper {
|
|
11
|
+
enableNative: boolean;
|
|
12
|
+
nativeIsReady: boolean;
|
|
13
|
+
platform: typeof Platform.OS;
|
|
14
|
+
_NativeClientError: Error;
|
|
15
|
+
_DisabledNativeError: Error;
|
|
16
|
+
_processItem(envelopeItem: EnvelopeItem): EnvelopeItem;
|
|
17
|
+
_processLevels(event: Event): Event;
|
|
18
|
+
_processLevel(level: SeverityLevel): SeverityLevel;
|
|
19
|
+
_serializeObject(data: {
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}): {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
_isModuleLoaded(module: Spec | undefined): module is Spec;
|
|
25
|
+
_getBreadcrumbs(event: Event): Breadcrumb[] | undefined;
|
|
26
|
+
isNativeAvailable(): boolean;
|
|
27
|
+
initNativeSdk(options: Partial<ReactNativeClientOptions>): PromiseLike<boolean>;
|
|
28
|
+
closeNativeSdk(): PromiseLike<void>;
|
|
29
|
+
sendEnvelope(envelope: Envelope): Promise<void>;
|
|
30
|
+
captureScreenshot(): Promise<Screenshot[] | null>;
|
|
31
|
+
fetchNativeRelease(): PromiseLike<NativeReleaseResponse>;
|
|
32
|
+
fetchNativeDeviceContexts(): PromiseLike<NativeDeviceContextsResponse>;
|
|
33
|
+
fetchNativeAppStart(): PromiseLike<NativeAppStartResponse | null>;
|
|
34
|
+
fetchNativeFrames(): PromiseLike<NativeFramesResponse | null>;
|
|
35
|
+
fetchNativeSdkInfo(): PromiseLike<Package | null>;
|
|
36
|
+
disableNativeFramesTracking(): void;
|
|
37
|
+
enableNativeFramesTracking(): void;
|
|
38
|
+
addBreadcrumb(breadcrumb: Breadcrumb): void;
|
|
39
|
+
setContext(key: string, context: {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
} | null): void;
|
|
42
|
+
clearBreadcrumbs(): void;
|
|
43
|
+
setExtra(key: string, extra: unknown): void;
|
|
44
|
+
setUser(user: User | null): void;
|
|
45
|
+
setTag(key: string, value: string): void;
|
|
46
|
+
nativeCrash(): void;
|
|
47
|
+
fetchModules(): Promise<Record<string, string> | null>;
|
|
48
|
+
fetchViewHierarchy(): PromiseLike<Uint8Array | null>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Our internal interface for calling native functions
|
|
52
|
+
*/
|
|
53
|
+
export declare const NATIVE: SentryNativeWrapper;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=wrapper.d.ts.map
|