@sentry/react-native
Version:
Official Sentry SDK for react-native
54 lines (53 loc) • 1.6 kB
TypeScript
import type { Integration } from '@sentry/core';
export type AppStartIntegration = Integration & {
captureStandaloneAppStart: () => Promise<void>;
};
/**
* Records the application start end.
* Used automatically by `Sentry.wrap` and `Sentry.ReactNativeProfiler`.
*/
export declare function captureAppStart(): Promise<void>;
/**
* For internal use only.
*
* @private
*/
export declare function _captureAppStart({ isManual }: {
isManual: boolean;
}): Promise<void>;
/**
* Sets the root component first constructor call timestamp.
* Used automatically by `Sentry.wrap` and `Sentry.ReactNativeProfiler`.
*/
export declare function setRootComponentCreationTimestampMs(timestampMs: number): void;
/**
* For internal use only.
*
* @private
*/
export declare function _setRootComponentCreationTimestampMs(timestampMs: number): void;
/**
* For internal use only.
*
* @private
*/
export declare const _setAppStartEndTimestampMs: (timestampMs: number) => void;
/**
* For testing purposes only.
*
* @private
*/
export declare function _clearRootComponentCreationTimestampMs(): void;
/**
* Adds AppStart spans from the native layer to the transaction event.
*/
export declare const appStartIntegration: ({ standalone, }?: {
/**
* Should the integration send App Start as a standalone root span (transaction)?
* If false, App Start will be added as a child span to the first transaction.
*
* @default false
*/
standalone?: boolean;
}) => AppStartIntegration;
//# sourceMappingURL=appStart.d.ts.map