(value)
| 34 | // This introduces higher risk of false positives (see comment below). |
| 35 | // We do not hash as it would be too CPU-intensive if the value is big. |
| 36 | const getPreviousEvent = (value) => { |
| 37 | const previousEvent = isErrorInstance(value) |
| 38 | ? serializeError(value) |
| 39 | : stableSerialize(value) |
| 40 | return previousEvent.slice(0, FINGERPRINT_MAX_LENGTH) |
| 41 | } |
| 42 | |
| 43 | // We do not serialize `error.message` as it may contain dynamic values like |
| 44 | // timestamps. This means errors are only `error.name` + `error.stack`, which |
no test coverage detected
searching dependent graphs…