UNPKG

@zendesk/retrace

Version:

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

10 lines (9 loc) 658 B
import type { SpanMatch } from './matchSpan'; import type { Span } from './spanTypes'; import type { DraftTraceContext, RelationSchemasBase } from './types'; /** * Finds the first span matching the provided SpanMatch in the parent hierarchy * of the given Span, starting with the span itself and traversing up * through its parents. */ export declare function findAncestor<RelationSchemasT extends RelationSchemasBase<RelationSchemasT>>(span: Span<RelationSchemasT>, spanMatch: SpanMatch<keyof RelationSchemasT, RelationSchemasT, any>, traceContext?: DraftTraceContext<keyof RelationSchemasT, RelationSchemasT, any>): Span<RelationSchemasT> | undefined;