Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions controlplane/src/core/sentry.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/node';

import { nodeProfilingIntegration } from '@sentry/profiling-node';
import { eventLoopBlockIntegration } from '@sentry/node-native';
import { fastifyIntegration } from "@sentry/node";

export interface SentryConfig {
sentry: {
Expand All @@ -21,6 +22,7 @@ export function init(opts: SentryConfig) {
Sentry.init({
dsn: opts.sentry.dsn,
integrations: [
fastifyIntegration(),
eventLoopBlockIntegration({ threshold: opts.sentry.eventLoopBlockIntegrationThresholdMs }),
nodeProfilingIntegration(),
],
Expand Down
Loading