Skip to content

Commit 363b1c3

Browse files
fix: add fastify integration to sentry of controlplane (#2260)
1 parent 128ebb9 commit 363b1c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controlplane/src/core/sentry.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as Sentry from '@sentry/node';
33

44
import { nodeProfilingIntegration } from '@sentry/profiling-node';
55
import { eventLoopBlockIntegration } from '@sentry/node-native';
6+
import { fastifyIntegration } from '@sentry/node';
67

78
export interface SentryConfig {
89
sentry: {
@@ -21,6 +22,7 @@ export function init(opts: SentryConfig) {
2122
Sentry.init({
2223
dsn: opts.sentry.dsn,
2324
integrations: [
25+
fastifyIntegration(),
2426
eventLoopBlockIntegration({ threshold: opts.sentry.eventLoopBlockIntegrationThresholdMs }),
2527
nodeProfilingIntegration(),
2628
],

0 commit comments

Comments
 (0)