UNPKG

@zendesk/retrace

Version:

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

6 lines (5 loc) 739 B
import { type ParentSpanMatcher } from './matchSpan'; import { type GetParentSpanFn, type Span } from './spanTypes'; import type { RelationSchemasBase } from './types'; export declare function ensureSpanHasInheritedAttributes<const RelationSchemasT extends RelationSchemasBase<RelationSchemasT>, SpanT extends Span<RelationSchemasT>>(span: SpanT, heritableSpanAttributes?: readonly string[]): boolean; export declare function createParentSpanResolver<const RelationSchemasT extends RelationSchemasBase<RelationSchemasT>, SpanT extends Span<RelationSchemasT>>(span: SpanT, parentSpanMatcher?: ParentSpanMatcher<keyof RelationSchemasT, RelationSchemasT, any>, heritableSpanAttributes?: readonly string[]): GetParentSpanFn<RelationSchemasT>;