@datadog/browser-logs
Version:
16 lines • 600 B
JavaScript
export 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