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 f2ef50c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 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));

// Sentry.init({
// dsn: 'https://[email protected]/6625302',
// integrations: [nodeProfilingIntegration()],
// tracesSampleRate: 1.0,
// profilesSampleRate: 1.0,
// });
Sentry.init({
dsn: 'https://[email protected]/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 f2ef50c

Please sign in to comment.