From 98e4eec238c954020524b325e7c77ead8e763ca4 Mon Sep 17 00:00:00 2001 From: JonasBa Date: Sat, 30 Nov 2024 08:59:17 -0500 Subject: [PATCH] test node --- .../node-profiling/index.mjs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dev-packages/e2e-tests/test-applications/node-profiling/index.mjs b/dev-packages/e2e-tests/test-applications/node-profiling/index.mjs index 91d319fc7f5f..4d6dd2d3da58 100644 --- a/dev-packages/e2e-tests/test-applications/node-profiling/index.mjs +++ b/dev-packages/e2e-tests/test-applications/node-profiling/index.mjs @@ -10,21 +10,21 @@ function assertUnpatechedRequire(cycle) { } assertUnpatechedRequire('at startup'); -// import * as Sentry from '@sentry/node'; +import * as Sentry from '@sentry/node'; // assertUnpatechedRequire('after importing sentry/node'); // import { nodeProfilingIntegration } from '@sentry/profiling-node'; // assertUnpatechedRequire('after importing sentry/profiling-node'); -// const wait = ms => new Promise(resolve => setTimeout(resolve, ms)); +const wait = ms => new Promise(resolve => setTimeout(resolve, ms)); -// Sentry.init({ -// dsn: 'https://7fa19397baaf433f919fbe02228d5470@o1137848.ingest.sentry.io/6625302', -// integrations: [nodeProfilingIntegration()], -// tracesSampleRate: 1.0, -// profilesSampleRate: 1.0, -// }); +Sentry.init({ + dsn: 'https://7fa19397baaf433f919fbe02228d5470@o1137848.ingest.sentry.io/6625302', + // integrations: [nodeProfilingIntegration()], + tracesSampleRate: 1.0, + profilesSampleRate: 1.0, +}); -// Sentry.startSpan({ name: 'Precompile test' }, async () => { -// await wait(500); -// }); +Sentry.startSpan({ name: 'Precompile test' }, async () => { + await wait(500); +}); -// assertUnpatechedRequire('after a span was created'); +assertUnpatechedRequire('after a span was created');