@zendesk/retrace
Version:
define and capture Product Operation Traces along with computed metrics with an optional friendly React beacon API
26 lines • 949 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VALID_TRACE_INTERRUPTION_REASONS = exports.TRACE_REPLACE_INTERRUPTION_REASONS = exports.INVALID_TRACE_INTERRUPTION_REASONS = void 0;
// trace interruptions that we consider 'invalid'
exports.INVALID_TRACE_INTERRUPTION_REASONS = [
'timeout',
'draft-cancelled',
'invalid-state-transition',
'parent-interrupted',
'child-interrupted',
'child-timeout',
];
exports.TRACE_REPLACE_INTERRUPTION_REASONS = [
'another-trace-started',
// if definition changes, we need to recreate the Trace instance and replay the spans
'definition-changed',
];
exports.VALID_TRACE_INTERRUPTION_REASONS = [
'waiting-for-interactive-timeout',
'aborted',
'idle-component-no-longer-idle',
'matched-on-interrupt',
'matched-on-required-span-with-error',
...exports.TRACE_REPLACE_INTERRUPTION_REASONS,
];
//# sourceMappingURL=types.js.map