Skip to content

Commit

Permalink
Update consumer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Nov 20, 2024
1 parent 19539c5 commit 6d5f528
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/src/packages/consumer.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import dotenv from "dotenv";
import * as Sentry from "@sentry/node"
import { nodeProfilingIntegration } from '@sentry/profiling-node';

Sentry.init({
dsn: process.env.SENTRY_DSN,
integrations: [
nodeProfilingIntegration(),
],
// Tracing
tracesSampleRate: 1.0, // Capture 100% of the transactions
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
});

if (process.env.NODE_ENV !== "production") {
Expand Down

0 comments on commit 6d5f528

Please sign in to comment.