Skip to content

Commit 0c40c45

Browse files
author
Hardik Choksi
committed
Remove duplicate event prevention from addExceptionEvent function
1 parent 07d05cc commit 0c40c45

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/exception-handler.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ function createExceptionSpanEvent(error) {
191191
* @param {Error} error - The error object
192192
*/
193193
function addExceptionEvent(span, error) {
194-
if (hasException) return; // Prevent duplicate events
195-
hasException = true;
196194
// Add function context information
197195
const structuredStack = jsonToString(ErrorStackParser.parse(error));
198196

0 commit comments

Comments
 (0)