17 lines · 649 B · TypeScript
RawDownload
// Import with `import * as Sentry from "@sentry/node"` if you are using ESMimport * 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: [nodeProfilingIntegration()],    tracesSampleRate: process.env.SENTRY_ENVIRONMENT === "dev" ? 1.0 : 0.045,    profilesSampleRate: 1.0,    serverName: process.env.FLY_MACHINE_ID,    environment: process.env.SENTRY_ENVIRONMENT ?? "production",    skipOpenTelemetrySetup: true,  });}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t