Skip to content

Commit e429d8e

Browse files
committedAug 5, 2024
Add general logic explanation
1 parent e3d0564 commit e429d8e

File tree

1 file changed

+4
-3
lines changed
  • v-next/hardhat/src/internal/cli/telemetry/sentry

1 file changed

+4
-3
lines changed
 

‎v-next/hardhat/src/internal/cli/telemetry/sentry/reporter.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ export function _testResetReporter(): void {
2525
}
2626

2727
class Reporter {
28-
// GENERAL EXPLANATION: The 'reportError' function collects the error and passes it to our custom Sentry transporter.
29-
// The transporter receives the JavaScript error serialized by Sentry.
30-
// This serialized error is then passed to a detached subprocess, which anonymizes all the information before sending it to Sentry.
28+
// GENERAL EXPLANATION:
29+
// 1) The 'reportError' function collects the error and passes it to our custom Sentry transporter.
30+
// 2) The custom transporter receives the JavaScript error serialized by Sentry.
31+
// 3) This serialized error is then passed to a detached subprocess, which anonymizes all the information before sending it to Sentry.
3132

3233
static #instance: Reporter | undefined;
3334
readonly #telemetryEnabled: boolean;

0 commit comments

Comments
 (0)