Skip to content

ci(node): Add size limit entry for node without performance #12342

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 1 commit into from
Jun 4, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Jun 4, 2024

You can initialize the Node SDK like this:

import * as Node from '@sentry/node';

Sentry.initWithoutDefaultIntegrations({
  dsn: '...',
  integrations: [...Sentry.getDefaultIntegrationsWithoutPerformance()]
});

Which can be used to tree shake all the otel performance instrumentation (except for http) away.

Also adjusts the size limits to be the current values + ~15kb.

@mydea mydea requested review from lforst, Lms24, s1gr1d and andreiborza June 4, 2024 07:57
@mydea mydea self-assigned this Jun 4, 2024
Copy link
Contributor

github-actions bot commented Jun 4, 2024

size-limit report 📦

Path Size
@sentry/browser 21.74 KB (0%)
@sentry/browser (incl. Tracing) 32.77 KB (0%)
@sentry/browser (incl. Tracing, Replay) 68.34 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.65 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 72.41 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 84.5 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 86.36 KB (0%)
@sentry/browser (incl. metrics) 25.92 KB (0%)
@sentry/browser (incl. Feedback) 37.89 KB (0%)
@sentry/browser (incl. sendFeedback) 26.32 KB (0%)
@sentry/browser (incl. FeedbackAsync) 30.86 KB (0%)
@sentry/react 24.51 KB (0%)
@sentry/react (incl. Tracing) 35.81 KB (0%)
@sentry/vue 25.73 KB (0%)
@sentry/vue (incl. Tracing) 34.61 KB (0%)
@sentry/svelte 21.87 KB (0%)
CDN Bundle 23.11 KB (0%)
CDN Bundle (incl. Tracing) 34.5 KB (0%)
CDN Bundle (incl. Tracing, Replay) 68.43 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 73.6 KB (0%)
CDN Bundle - uncompressed 68 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 102.18 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 212.07 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 224.54 KB (0%)
@sentry/nextjs (client) 35.16 KB (0%)
@sentry/sveltekit (client) 33.4 KB (0%)
@sentry/node 115.24 KB (0%)
@sentry/aws-serverless 103.73 KB (+0.01% 🔺)
@sentry/node - without tracing 94.55 KB (added)

@mydea mydea merged commit 6d83a0a into develop Jun 4, 2024
110 checks passed
@mydea mydea deleted the fn/tracing-tree-shake branch June 4, 2024 08:25
billyvg pushed a commit that referenced this pull request Jun 10, 2024
You can initialize the Node SDK like this:

```js
import * as Node from '@sentry/node';

Sentry.initWithoutDefaultIntegrations({
  dsn: '...',
  integrations: [...Sentry.getDefaultIntegrationsWithoutPerformance()]
});
```

Which can be used to tree shake all the otel performance instrumentation
(except for http) away.

Also adjusts the size limits to be the current values + ~15kb.
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.

3 participants