@zendesk/retrace
Version:
define and capture Product Operation Traces along with computed metrics with an optional friendly React beacon API
9 lines (8 loc) • 491 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
*/
export declare const generateUseBeacon: <RelationSchemasT extends RelationSchemasBase<RelationSchemasT>, RequiredAttributesT = {}>(traceManager: TraceManager<RelationSchemasT>) => UseBeacon<RelationSchemasT, RequiredAttributesT>;