UNPKG

@zendesk/retrace

Version:

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

11 lines 507 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.requiredSpanWithErrorStatus = requiredSpanWithErrorStatus; // tag matcher with a special, internal matcher tag, and match on span.status === 'error' function requiredSpanWithErrorStatus() { const matcherFn = ({ span }) => span.status === 'error'; return Object.assign(matcherFn, // add a tag to the function if set to true { requiredSpan: true }); } //# sourceMappingURL=requiredSpanWithErrorStatus.js.map