UNPKG

@datadog/browser-logs

Version:
19 lines 739 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createErrorFieldFromRawError = createErrorFieldFromRawError; function createErrorFieldFromRawError(rawError, { /** * Set this to `true` to include the error message in the error field. In most cases, the error * message is already included in the log message, so we don't need to include it again. */ includeMessage = false, } = {}) { return { stack: rawError.stack, kind: rawError.type, message: includeMessage ? rawError.message : undefined, causes: rawError.causes, fingerprint: rawError.fingerprint, handling: rawError.handling, }; } //# sourceMappingURL=createErrorFieldFromRawError.js.map