Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(sentry): add log + server name

Gergő Móricz3d5dc9d90aa6
diff --git a/apps/api/src/services/sentry.ts b/apps/api/src/services/sentry.ts
index 04a0b1e4b..11dcab45d 100644
--- a/apps/api/src/services/sentry.ts
+++ b/apps/api/src/services/sentry.ts
@@ -1,8 +1,10 @@
// Import with `import * as Sentry from "@sentry/node"` if you are using ESM
import * as Sentry from "@sentry/node";
import { nodeProfilingIntegration } from "@sentry/profiling-node";
+import { Logger } from "../lib/logger";
if (process.env.SENTRY_DSN) {
+ Logger.info("Setting up Sentry...");
Sentry.init({
dsn: process.env.SENTRY_DSN,
integrations: [
@@ -10,5 +12,6 @@ if (process.env.SENTRY_DSN) {
],
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
+ serverName: process.env.FLY_MACHINE_ID,
});
}