Files
firecrawl/apps/api/src/services/sentry.ts
T

15 lines
389 B
TypeScript
Raw Normal View History

2024-08-21 12:35:03 -03:00
// Import with `import * as Sentry from "@sentry/node"` if you are using ESM
2024-08-21 17:58:27 +02:00
import * as Sentry from "@sentry/node";
import { nodeProfilingIntegration } from "@sentry/profiling-node";
2024-08-21 12:35:03 -03:00
2024-08-21 17:58:27 +02:00
if (process.env.SENTRY_DSN) {
Sentry.init({
dsn: process.env.SENTRY_DSN,
integrations: [
nodeProfilingIntegration(),
],
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
});
}