Skip to content
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

feat(sveltekit): Add Undici integration by default #7650

Merged
merged 3 commits into from Mar 29, 2023

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Mar 29, 2023

closes #7624

Depends on #7646

@AbhiPrasad AbhiPrasad requested a review from Lms24 March 29, 2023 13:24
@AbhiPrasad AbhiPrasad self-assigned this Mar 29, 2023
@AbhiPrasad AbhiPrasad linked an issue Mar 29, 2023 that may be closed by this pull request
initNodeSdk(options);

configureScope(scope => {
scope.setTag('runtime', 'node');
});
}

function addServerIntegrations(options: NodeOptions): void {
Copy link
Member

Choose a reason for hiding this comment

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

m: before adding this integration, don't we need to check for hasTracingEnabled?

At least that's how we do it on the client-side

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't need to worry about bundle size + the integration should gracefully handle when tracing is not enabled, so I think the answer is no.

We have this logic in next.js because the http integration by default sets tracing to be false - you have to opt-in to it (which is what the nextjs SDK adds for you).

Copy link
Member

Choose a reason for hiding this comment

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

I see, thanks for clarifying!

Base automatically changed from abhi-undici-node-refactor to develop March 29, 2023 14:29
@AbhiPrasad AbhiPrasad merged commit 120ae6d into develop Mar 29, 2023
25 of 26 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-undici-sveltekit branch March 29, 2023 16:21
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.

Undici integration final touches
2 participants