@zjsix/vue-monitor
Version:
A simple monitoring plugin for Vue.js applications, providing error tracking, performance monitoring and user behavior analysis
28 lines (27 loc) • 613 B
TypeScript
export interface Breadcrumb {
type: string;
target?: string;
value?: string;
timestamp: string;
}
export interface ErrorInfo {
message: string;
stack?: string;
info?: string;
url: string;
timestamp: string;
}
export interface MonitorOptions {
reportUrl: string;
projectName?: string;
projectVersion?: string;
maxBreadcrumbs?: number;
errorThrottleTime?: number;
filterInputAndScanData?: boolean;
customHeaders?: Record<string, string>;
customData?: Record<string, any>;
}
export interface CachedError {
hash: string;
lastTime: number;
}