Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Dont log Feature Flog Errors to Sentry (#2540)
Abimael Martell76bbe5ad92f9
diff --git a/apps/api/src/services/sentry.ts b/apps/api/src/services/sentry.tsindex 1aa1d1d6a..abc5a97d8 100644--- a/apps/api/src/services/sentry.ts+++ b/apps/api/src/services/sentry.ts@@ -1,6 +1,10 @@import * as Sentry from "@sentry/node";import { logger } from "../lib/logger";import { config } from "../config";+import {+ AddFeatureError,+ RemoveFeatureError,+} from "../scraper/scrapeURL/error";type CaptureContext = {tags?: Record<string, string>;@@ -53,6 +57,14 @@ if (config.SENTRY_DSN) {const error = hint?.originalException;if (error && typeof error === "object") {+ // Filter out AddFeatureError and RemoveFeatureError+ if (+ error instanceof AddFeatureError ||+ error instanceof RemoveFeatureError+ ) {+ return null;+ }+const errorCode = "code" in error ? String(error.code) : "";const transportableErrorCodes = [