Skip to content

Commit f7183db

Browse files
authored
fix: rename onuncaughtexception error handler internal tag (#161)
* fix: rename onuncaughtexception error handler internal tag * docs: add changeset
1 parent d332c32 commit f7183db

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.changeset/loud-paws-film.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@hyperdx/instrumentation-exception': patch
3+
'@hyperdx/node-opentelemetry': patch
4+
---
5+
6+
fix: rename onuncaughtexception error handler internal tag

packages/instrumentation-exception/src/node/integrations/onuncaughtexception.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const onUncaughtExceptionIntegration = defineIntegration(
5858
},
5959
);
6060

61-
type ErrorHandler = { _errorHandler: boolean } & ((error: Error) => void);
61+
type ErrorHandler = { _hdxErrorHandler: boolean } & ((error: Error) => void);
6262

6363
/** Exported only for tests */
6464
export function makeErrorHandler(
@@ -87,7 +87,7 @@ export function makeErrorHandler(
8787
// as soon as we're using domains this listener is attached by node itself
8888
listener.name !== 'domainUncaughtExceptionClear' &&
8989
// the handler we register in this integration
90-
(listener as ErrorHandler)._errorHandler !== true
90+
(listener as ErrorHandler)._hdxErrorHandler !== true
9191
);
9292
}).length;
9393

@@ -156,6 +156,6 @@ export function makeErrorHandler(
156156
}
157157
}
158158
},
159-
{ _errorHandler: true },
159+
{ _hdxErrorHandler: true },
160160
);
161161
}

0 commit comments

Comments
 (0)