Skip to content

Commit

Permalink
test node
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa committed Nov 30, 2024
1 parent d4505a4 commit 98e4eec
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions dev-packages/e2e-tests/test-applications/node-profiling/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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');

0 comments on commit 98e4eec

Please sign in to comment.