UNPKG

@zendesk/retrace

Version:

define and capture Product Operation Traces along with computed metrics with an optional friendly React beacon API

17 lines (16 loc) 513 B
import type { SpanBase } from '../spanTypes'; export interface TimelineOptions { scale?: number; width?: number; startTime?: number; gapThreshold?: number; } type SpanLike = Pick<SpanBase<any>, 'startTime' | 'duration' | 'name' | 'type'>; interface PerformanceEntryLike { duration: number; entryType: string; name: string; startTime: number; } export declare function generateAsciiTimeline(spans: (PerformanceEntryLike | SpanLike)[], options?: TimelineOptions): string; export {};