Skip to content

feat(profiling-node): Refactor deprecated methods & non-hook variant #10984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const Sentry = require('@sentry/node');
const Profiling = require('@sentry/profiling-node');
const { nodeProfilingIntegration } = require('@sentry/profiling-node');

const wait = ms => new Promise(resolve => setTimeout(resolve, ms));

Sentry.init({
dsn: 'https://[email protected]/6625302',
integrations: [new Profiling.ProfilingIntegration()],
integrations: [nodeProfilingIntegration()],
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
});
Expand Down
248 changes: 0 additions & 248 deletions packages/profiling-node/src/hubextensions.ts

This file was deleted.

6 changes: 1 addition & 5 deletions packages/profiling-node/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export {
// eslint-disable-next-line deprecation/deprecation
ProfilingIntegration,
nodeProfilingIntegration,
} from './integration';
export { nodeProfilingIntegration } from './integration';
Loading