@zendesk/retrace
Version:
define and capture Product Operation Traces along with computed metrics with an optional friendly React beacon API
10 lines (9 loc) • 571 B
TypeScript
import type { UseBeacon } from './hooksTypes';
import type { TraceManager } from './TraceManager';
import type { RelationSchemasBase } from './types';
/**
* The job of the beacon:
* emit component-render-start, component-render, component-unmount entries
* (or hook-render-start, hook-render, hook-unmount based on the isHook option)
*/
export declare const generateUseBeacon: <RelationSchemasT extends RelationSchemasBase<RelationSchemasT>, RequiredAttributesT = {}>(traceManager: TraceManager<RelationSchemasT>) => UseBeacon<RelationSchemasT, RequiredAttributesT>;