highlight.run
Version:
Open source, fullstack monitoring. Capture frontend errors, record server side logs, and visualize what broke with session replay.
23 lines (22 loc) • 688 B
TypeScript
import type { StackFrame } from 'stacktrace-js';
export type Source = 'segment' | 'LaunchDarkly' | undefined;
export type ConsoleMessage = {
value?: Array<string>;
attributes?: string;
time: number;
type: string;
trace?: StackFrame[];
};
export type ErrorMessageType = 'console.error' | 'window.onerror' | 'window.onunhandledrejection' | 'custom' | 'React.ErrorBoundary';
export type ErrorMessage = {
event: string;
type: ErrorMessageType;
url: string;
source: string;
lineNumber: number;
columnNumber: number;
stackTrace: StackFrame[];
/** The Unix Time of when the error was thrown. */
timestamp: string;
payload?: string;
};