Skip to content

Commit

Permalink
test runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa committed Nov 30, 2024
1 parent a3a20d1 commit d4505a4
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 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';
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));
// 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 d4505a4

Please sign in to comment.