@zendesk/retrace
Version:
define and capture Product Operation Traces along with computed metrics with an optional friendly React beacon API
8 lines (7 loc) • 614 B
TypeScript
import type { PerformanceEntrySpan, ResourceSpan } from './spanTypes';
import type { DeriveRelationsFromPerformanceEntryFn, RelationSchemasBase } from './types';
/**
* Maps Performance Entry to a Span
* @returns The span.
*/
export declare function getSpanFromPerformanceEntry<RelationSchemasT extends RelationSchemasBase<RelationSchemasT>>(inputEntry: PerformanceEntry, deriveRelationFromPerformanceEntry?: DeriveRelationsFromPerformanceEntryFn<RelationSchemasT>): Omit<PerformanceEntrySpan<RelationSchemasT>, 'id' | 'getParentSpan'> | Omit<ResourceSpan<RelationSchemasT>, 'id' | 'getParentSpan'> | undefined;