UNPKG

@zendesk/retrace

Version:

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

9 lines (8 loc) 809 B
import type { SpanAndAnnotation, SpanAnnotation } from '../spanAnnotationTypes'; import type { Span } from '../spanTypes'; import type { RelationSchemasBase, Timestamp } from '../types'; export declare const createTimestamp: (now: number) => Timestamp; export type AnyRelation = RelationSchemasBase<Record<string, unknown>>; export declare const createAnnotation: (span: Span<AnyRelation>, traceStartTime: Timestamp, partial?: Partial<SpanAnnotation>) => SpanAnnotation; export declare const createMockSpan: <TSpan extends Span<AnyRelation>>(startTimeNow: number, partial: Partial<TSpan>) => TSpan; export declare const createMockSpanAndAnnotation: <TSpan extends Span<any>>(startTimeNow: number, spanPartial?: Partial<TSpan>, annotationPartial?: Partial<SpanAnnotation>) => [string, SpanAndAnnotation<any>];