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(node): Add tracing without performance to Node Undici #8449

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

AbhiPrasad
Copy link
Member

ref #8352

Updates the Node Undici integration to always attach sentry-trace headers to outgoing requests.

This can be controlled with the top level tracePropagationOptions option.

@AbhiPrasad AbhiPrasad requested review from a team, stephanie-anderson and ale-cota and removed request for a team July 4, 2023 14:51
@AbhiPrasad
Copy link
Member Author

I have no idea why these are failing - the tests all pass for me locally :/

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.95 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 69.13 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.29 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 60.38 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 21.9 KB (0%)
@sentry/browser - Webpack (minified) 71.51 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.92 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 50.57 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.11 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.14 KB (0%)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.42 KB (0%)
@sentry/replay - Webpack (gzipped + minified) 43.1 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.5 KB (-0.01% 🔽)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.82 KB (0%)

@AbhiPrasad AbhiPrasad force-pushed the abhi-twp-node-undici branch 2 times, most recently from 9e6c6ef to fb3ff50 Compare July 10, 2023 16:00
@AbhiPrasad AbhiPrasad requested review from mydea and Lms24 July 10, 2023 18:14
@AbhiPrasad
Copy link
Member Author

The bug with Undici tests ended up being an issue with multiple test server using the same port

I'm going to merge this in for now, but I have a todo to come in and clean up the tests here.

@AbhiPrasad
Copy link
Member Author

I ended up skipping tests because I can't figure out why they only fail in CI: 6166a32

only e2e tests are failing because of timeout, but that should be solved by #8486

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -51,10 +51,10 @@ conditionalTest({ min: 16 })('Undici integration', () => {
it.each([
[
'simple url',
'http://localhost:18099',
'http://localhost:18100',
Copy link
Member

Choose a reason for hiding this comment

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

no action required: Any particular reason for the port change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes - this was because 18099 was used by another test so running the tests in parallel would lead to issues. See: #8449 (comment)

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) July 11, 2023 15:09
@AbhiPrasad AbhiPrasad merged commit db9523e into develop Jul 11, 2023
47 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-twp-node-undici branch July 11, 2023 15:18
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.

None yet

2 participants