Skip to content

Conversation

@AbhiPrasad
Copy link
Member

Fixes #4642

We would like to remove @sentry/tracing as a dependency to @sentry/node since it has a massive impact on startup time.

We do this by eliminating the import { extractTraceparentData, Span } from '@sentry/tracing'; in packages/node/src/handlers.ts

We move extractTraceparentData into @sentry/utils and use Span from @sentry/types instead of @sentry/tracing.

Resolves https://getsentry.atlassian.net/browse/WEB-637

@AbhiPrasad AbhiPrasad requested review from a team, Lms24 and lobsterkatie and removed request for a team February 28, 2022 16:05
@github-actions
Copy link
Contributor

github-actions bot commented Feb 28, 2022

size-limit report

Path Base Size (d83d231) Current Size Change
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.77 KB 19.77 KB 0%
@sentry/browser - ES5 CDN Bundle (minified) 63.47 KB 63.47 KB 0%
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.44 KB 18.44 KB -0.01% 🔽
@sentry/browser - ES6 CDN Bundle (minified) 56.6 KB 56.6 KB 0%
@sentry/browser - Webpack (gzipped + minified) 22.2 KB 22.2 KB 0%
@sentry/browser - Webpack (minified) 76.36 KB 76.36 KB 0%
@sentry/react - Webpack (gzipped + minified) 22.23 KB 22.23 KB 0%
@sentry/nextjs Client - Webpack (gzipped + minified) 46.4 KB 46.4 KB -0.01% 🔽
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 27.23 KB 27.23 KB -0.03% 🔽

@AbhiPrasad AbhiPrasad force-pushed the abhi-tracing-to-utils branch from 3ad3834 to 503bf89 Compare February 28, 2022 16:46
@AbhiPrasad AbhiPrasad force-pushed the abhi-tracing-to-utils branch from 503bf89 to 5da47a9 Compare February 28, 2022 19:36
Copy link
Member

@lobsterkatie lobsterkatie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) March 1, 2022 14:10
@AbhiPrasad AbhiPrasad disabled auto-merge March 1, 2022 14:18
@AbhiPrasad AbhiPrasad enabled auto-merge (squash) March 1, 2022 14:18
@AbhiPrasad AbhiPrasad merged commit 7fe5717 into master Mar 1, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-tracing-to-utils branch March 1, 2022 14:32
AbhiPrasad added a commit that referenced this pull request Mar 2, 2022
We would like to remove `@sentry/tracing` as a dependency to `@sentry/node` since it has a massive impact on startup time.

We do this by eliminating the `import { extractTraceparentData, Span } from '@sentry/tracing';` in `packages/node/src/handlers.ts`

We move `extractTraceparentData` into `@sentry/utils` and use `Span` from `@sentry/types` instead of `@sentry/tracing`.

Co-authored-by: Katie Byers <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@sentry/node should not have a direct dependency on @sentry/tracing

4 participants