Skip to content

Commit f23e7d4

Browse files
add package to ignore for sentry errors
1 parent 41d013f commit f23e7d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class Anonymizer {
203203

204204
#errorRaisedByPackageToIgnore(filename: string): boolean {
205205
const pkgsToIgnore: string[] = [
206-
path.join("node_modules", "@random-npm-package"), // TODO: add real packages
206+
path.join("node_modules", "@ethersproject"), // List of external packages that we don't want to report errors from
207207
];
208208

209209
const pkgs = filename.match(/node_modules[\/\\][^\/\\]+/g); // Match path separators both for Windows and Unix

v-next/hardhat/test/internal/cli/telemetry/sentry/anonymizer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ describe("Anonymizer", () => {
436436
"node_modules",
437437
"@nomicfoundation-pkg2",
438438
"node_modules",
439-
"@random-npm-package",
439+
"@ethersproject",
440440
"some-file.js",
441441
),
442442
),

0 commit comments

Comments
 (0)