-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
initWithoutDefaultIntegrations and getDefaultIntegrationsWithoutPerformance methods for @sentry/bun #14504
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
Comments
(The purpose of this feature would be to reduce Sentry's impact on bun performance, as mentioned in this issue: #12561) |
Hi @Thanaen, thanks for reaching out. You could just filter the integrations based on your needs like this: Sentry.init({
// ...
integrations: function (integrations) {
// integrations will be all default integrations
return integrations.filter(function (integration) {
return integration.name !== "Breadcrumbs";
});
},
}); |
This could be a good workaround, even if it's less simple to use than the methods provided for Node.js! Does it allow tree-shaking of disabled integrations? |
@Thanaen |
Ok! This means that Sentry users who use Bun should maintain a list of integrations to disable if they don't want to use tracing and performance analysis, it's not ideal, but I can live with it for now |
@Thanaen updated my comment above! |
Thanks for the update! |
Problem Statement
@sentry/node calls the “initWithoutDefaultIntegrations” method combined with “getDefaultIntegrationsWithoutPerformance” to initialize Sentry in “error handling” mode only.
It would appear that the @sentry/bun package does not expose these methods, but @sentry/bun users would also benefit from them.
Would it be possible to add them?
An alternative solution would be to use @sentry/node with bun, but I'm not sure about the side effects.
Thanks!
Solution Brainstorm
Add “initWithoutDefaultIntegrations” and “getDefaultIntegrationsWithoutPerformance” methods to @sentry/bun
The text was updated successfully, but these errors were encountered: