UNPKG

@zendesk/retrace

Version:

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

48 lines 1.82 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BAR_FILL_COLOR = exports.FILTER_OPTIONS = exports.DETAILS_PANEL_WIDTH = exports.COLLAPSE_IFRAME_SPANS = exports.COLLAPSE_EMBER_RESOURCE_SPANS = exports.COLLAPSE_ASSET_SPANS_TEXT = exports.COLLAPSE_RENDER_SPANS_TEXT = exports.MEASURES_TEXT = exports.RESOURCES_TEXT = void 0; exports.RESOURCES_TEXT = 'Show Resources'; exports.MEASURES_TEXT = 'Show Measures'; exports.COLLAPSE_RENDER_SPANS_TEXT = 'Collapse Renders'; exports.COLLAPSE_ASSET_SPANS_TEXT = 'Collapse Assets'; exports.COLLAPSE_EMBER_RESOURCE_SPANS = 'Collapse Ember'; exports.COLLAPSE_IFRAME_SPANS = 'Collapse iframes'; exports.DETAILS_PANEL_WIDTH = 400; exports.FILTER_OPTIONS = [ exports.RESOURCES_TEXT, exports.MEASURES_TEXT, exports.COLLAPSE_RENDER_SPANS_TEXT, exports.COLLAPSE_ASSET_SPANS_TEXT, exports.COLLAPSE_EMBER_RESOURCE_SPANS, exports.COLLAPSE_IFRAME_SPANS, ]; exports.BAR_FILL_COLOR = { 'component-render-start': '#000000', // invisible 'component-render': '#ff7f0e', 'hook-render-start': '#000000', // invisible 'hook-render': '#c0e0e0', measure: '#2ca02c', resource: '#1f77b4', 'resource-ember': '#17becf', longtask: '#d62728', 'long-animation-frame': '#d62728', mark: '#9467bd', asset: '#8c564b', iframe: '#e377c2', element: '#7f7f7f', action: '#bcbd22', operation: '#547621', 'computed-span': '#17becf', 'component-unmount': '#ff9896', 'hook-unmount': '#ff9896', error: '#ff9896', 'first-input': '#aec7e8', 'largest-contentful-paint': '#98df8a', 'layout-shift': '#ff9896', 'visibility-state': '#ff9896', event: '#ff9896', navigation: '#ff9896', paint: '#ff9896', taskattribution: '#ff9896', }; //# sourceMappingURL=constants.js.map