UNPKG

@zendesk/retrace

Version:

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

8 lines (7 loc) 487 B
import type { PerformanceEntrySpan, ResourceSpan } from './spanTypes'; import type { DeriveRelationsFromPerformanceEntryFn } from './types'; /** * Maps Performance Entry to a Span * @returns The span. */ export declare function getSpanFromPerformanceEntry<RelationSchemasT>(inputEntry: PerformanceEntry, deriveRelationFromPerformanceEntry?: DeriveRelationsFromPerformanceEntryFn<RelationSchemasT>): PerformanceEntrySpan<RelationSchemasT> | ResourceSpan<RelationSchemasT> | undefined;