File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
dev-packages/node-integration-tests/suites/public-api/withMonitor Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,8 @@ Sentry.init({
77 transport : loggingTransport ,
88} ) ;
99
10- // First withMonitor call without isolateTrace
1110// eslint-disable-next-line @sentry-internal/sdk/no-floating-promises
1211Sentry . withMonitor ( 'cron-job-1' , async ( ) => {
13- // Simulate some work
1412 await new Promise < void > ( ( resolve ) => {
1513 setTimeout ( ( ) => {
1614 resolve ( ) ;
@@ -20,10 +18,8 @@ Sentry.withMonitor('cron-job-1', async () => {
2018 schedule : { type : 'crontab' , value : '* * * * *' } ,
2119} ) ;
2220
23- // Second withMonitor call with isolateTrace (should have different trace)
2421// eslint-disable-next-line @sentry-internal/sdk/no-floating-promises
2522Sentry . withMonitor ( 'cron-job-2' , async ( ) => {
26- // Simulate some work
2723 await new Promise < void > ( ( resolve ) => {
2824 setTimeout ( ( ) => {
2925 resolve ( ) ;
@@ -34,7 +30,6 @@ Sentry.withMonitor('cron-job-2', async () => {
3430 isolateTrace : true ,
3531} ) ;
3632
37- // Wait a bit for check-ins to complete before exiting
3833setTimeout ( ( ) => {
3934 process . exit ( ) ;
4035} , 500 ) ;
You can’t perform that action at this time.
0 commit comments