summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/swift-ladybugs-sniff.md7
-rw-r--r--packages/astro/src/vite-plugin-astro-server/error.ts5
2 files changed, 7 insertions, 5 deletions
diff --git a/.changeset/swift-ladybugs-sniff.md b/.changeset/swift-ladybugs-sniff.md
new file mode 100644
index 000000000..ce3c0ff4b
--- /dev/null
+++ b/.changeset/swift-ladybugs-sniff.md
@@ -0,0 +1,7 @@
+---
+'astro': patch
+---
+
+Remove non-fatal errors from telemetry
+
+Previously we tracked non-fatal errors in telemetry to get a good idea of the types of errors that occur in `astro dev`. However this has become noisy over time and results in a lot of data that isn't particularly useful. This removes those non-fatal errors from being tracked.
diff --git a/packages/astro/src/vite-plugin-astro-server/error.ts b/packages/astro/src/vite-plugin-astro-server/error.ts
index b1fc78ee9..464351943 100644
--- a/packages/astro/src/vite-plugin-astro-server/error.ts
+++ b/packages/astro/src/vite-plugin-astro-server/error.ts
@@ -24,11 +24,6 @@ export function recordServerError(
// Our error should already be complete, but let's try to add a bit more through some guesswork
const errorWithMetadata = collectErrorMetadata(err, config.root);
- // Ignore unhandled rejection errors as they appear A LOT and we cannot record the amount to telemetry
- if (errorWithMetadata.name !== AstroErrorData.UnhandledRejection.name) {
- telemetry.record(eventError({ cmd: 'dev', err: errorWithMetadata, isFatal: false }));
- }
-
logger.error(null, formatErrorMessage(errorWithMetadata, logger.level() === 'debug'));
return {