Skip to content

Commit 01e327a

Browse files
committed
Implement thread block monitoring
1 parent c101bf9 commit 01e327a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/loader.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { config as dotenv } from "dotenv";
1717
import { NodeTracerProvider } from "@opentelemetry/sdk-trace-node";
1818
import { SentryPropagator, SentrySampler, SentrySpanProcessor } from "@sentry/opentelemetry";
1919
import { context, propagation, trace } from "@opentelemetry/api";
20+
import { eventLoopBlockIntegration } from "@sentry/node-native";
2021

2122
dotenv();
2223

@@ -58,6 +59,10 @@ const cli = sentryInit({
5859
}),
5960
rewriteFramesIntegration({
6061
iteratee: frameStackIteratee
62+
}),
63+
eventLoopBlockIntegration({
64+
threshold: 250,
65+
maxEventsPerHour: 3,
6166
})
6267
],
6368
});

0 commit comments

Comments
 (0)