Skip to content

Commit

Permalink
feat: add sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdilouraoui committed May 2, 2024
1 parent 5019b8e commit 6ba59d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/middlewares/sentry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import * as Sentry from "@sentry/node";
import {extractTraceparentData, stripUrlQueryAndFragment,} from "@sentry/tracing";
import {
extractTraceparentData,
stripUrlQueryAndFragment,
} from "@sentry/tracing";

Sentry.init({
dsn: process.env.SENTRY_DSN,
Expand All @@ -8,7 +11,7 @@ Sentry.init({
// enable HTTP calls tracing
new Sentry.Integrations.Http({ tracing: true }),
],
tracesSampleRate: 1.0
tracesSampleRate: 1.0,
});

const tracingMiddleWare = async (ctx, next) => {
Expand Down

0 comments on commit 6ba59d9

Please sign in to comment.