UNPKG

@zendesk/retrace

Version:

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

13 lines (12 loc) 955 B
import type { SpanType } from '../v3/spanTypes'; export declare const RESOURCES_TEXT = "Show Resources"; export declare const MEASURES_TEXT = "Show Measures"; export declare const COLLAPSE_RENDER_SPANS_TEXT = "Collapse Renders"; export declare const COLLAPSE_ASSET_SPANS_TEXT = "Collapse Assets"; export declare const COLLAPSE_EMBER_RESOURCE_SPANS = "Collapse Ember"; export declare const COLLAPSE_IFRAME_SPANS = "Collapse iframes"; export declare const DETAILS_PANEL_WIDTH = 400; export type FilterOption = typeof RESOURCES_TEXT | typeof MEASURES_TEXT | typeof COLLAPSE_RENDER_SPANS_TEXT | typeof COLLAPSE_ASSET_SPANS_TEXT | typeof COLLAPSE_EMBER_RESOURCE_SPANS | typeof COLLAPSE_IFRAME_SPANS; export declare const FILTER_OPTIONS: FilterOption[]; export type SupportedSpanTypes = SpanType | 'resource-ember' | 'asset' | 'iframe' | 'element' | 'action' | 'error' | 'computed-span'; export declare const BAR_FILL_COLOR: Record<SupportedSpanTypes, string>;