mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 14:10:42 +08:00
feat(sentry): add log + server name
This commit is contained in:
parent
79f5d49d3f
commit
3d5dc9d90a
@ -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,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user