browser-sdk

Home > @datadog/browser-rum > RumErrorEvent

RumErrorEvent type

Schema of all properties of an Error event

Signature:

export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewContainerSchema & {
 readonly type: 'error';
 readonly error: {
 readonly id?: string;
 message: string;
 readonly source: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'webview' | 'custom' | 'report';
 stack?: string;
 causes?: {
 message: string;
 readonly type?: string;
 stack?: string;
 readonly source: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'webview' | 'custom' | 'report';
 [k: string]: unknown;
 }[];
 readonly is_crash?: boolean;
 fingerprint?: string;
 readonly type?: string;
 readonly category?: 'ANR' | 'App Hang' | 'Exception' | 'Watchdog Termination' | 'Memory Warning';
 readonly handling?: 'handled' | 'unhandled';
 readonly handling_stack?: string;
 readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp';
 readonly resource?: {
 readonly method: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'TRACE' | 'OPTIONS' | 'CONNECT';
 readonly status_code: number;
 url: string;
 readonly provider?: {
 readonly domain?: string;
 readonly name?: string;
 readonly type?: 'ad' | 'advertising' | 'analytics' | 'cdn' | 'content' | 'customer-success' | 'first party' | 'hosting' | 'marketing' | 'other' | 'social' | 'tag-manager' | 'utility' | 'video';
 [k: string]: unknown;
 };
 [k: string]: unknown;
 };
 threads?: {
 readonly name: string;
 readonly crashed: boolean;
 readonly stack: string;
 readonly state?: string;
 [k: string]: unknown;
 }[];
 readonly binary_images?: {
 readonly uuid: string;
 readonly name: string;
 readonly is_system: boolean;
 readonly load_address?: string;
 readonly max_address?: string;
 readonly arch?: string;
 [k: string]: unknown;
 }[];
 readonly was_truncated?: boolean;
 readonly meta?: {
 readonly code_type?: string;
 readonly parent_process?: string;
 readonly incident_identifier?: string;
 readonly process?: string;
 readonly exception_type?: string;
 readonly exception_codes?: string;
 readonly path?: string;
 [k: string]: unknown;
 };
 readonly csp?: {
 readonly disposition?: 'enforce' | 'report';
 [k: string]: unknown;
 };
 readonly time_since_app_start?: number;
 [k: string]: unknown;
 };
 readonly freeze?: {
 readonly duration: number;
 [k: string]: unknown;
 };
 readonly view?: {
 readonly in_foreground?: boolean;
 [k: string]: unknown;
 };
 readonly feature_flags?: {
 [k: string]: unknown;
 };
 [k: string]: unknown;
};

References: CommonProperties