Skip to content

test(e2e): Add ESM http instrumentation test #12379

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 2 commits into from
Jun 7, 2024

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Jun 6, 2024

Just a quick by-product of working on the ESM lambda layer: This PR adds a test to our ESM Express e2e test app to test that http instrumentation is working correctly by ensuring a http.client span is captured.

@Lms24 Lms24 requested a review from mydea June 6, 2024 09:13
Copy link
Contributor

github-actions bot commented Jun 6, 2024

size-limit report 📦

Path Size
@sentry/browser 22 KB (0%)
@sentry/browser (incl. Tracing) 33.19 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay) 68.8 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.09 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) 72.85 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) 85 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 86.83 KB (-0.01% 🔽)
@sentry/browser (incl. metrics) 26.19 KB (0%)
@sentry/browser (incl. Feedback) 38.17 KB (0%)
@sentry/browser (incl. sendFeedback) 26.59 KB (0%)
@sentry/browser (incl. FeedbackAsync) 31.15 KB (0%)
@sentry/react 24.77 KB (0%)
@sentry/react (incl. Tracing) 36.24 KB (0%)
@sentry/vue 26.01 KB (+0.01% 🔺)
@sentry/vue (incl. Tracing) 35.03 KB (0%)
@sentry/svelte 22.14 KB (+0.01% 🔺)
CDN Bundle 23.36 KB (+0.01% 🔺)
CDN Bundle (incl. Tracing) 34.87 KB (0%)
CDN Bundle (incl. Tracing, Replay) 68.84 KB (+0.01% 🔺)
CDN Bundle (incl. Tracing, Replay, Feedback) 73.99 KB (0%)
CDN Bundle - uncompressed 68.63 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 103.22 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 213.14 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 225.61 KB (0%)
@sentry/nextjs (client) 35.59 KB (-0.01% 🔽)
@sentry/sveltekit (client) 33.83 KB (-0.01% 🔽)
@sentry/node 129.8 KB (0%)
@sentry/node - without tracing 92.55 KB (0%)
@sentry/aws-serverless 117.61 KB (0%)

Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

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

some small comments, but overall looks nice!

@Lms24
Copy link
Member Author

Lms24 commented Jun 7, 2024

oof sorry for the stupid leftovers, I just extracted this out from the layer mess and should have given it a better check before PRing

@Lms24 Lms24 enabled auto-merge (squash) June 7, 2024 08:32
@Lms24 Lms24 merged commit 273e5e4 into develop Jun 7, 2024
79 checks passed
@Lms24 Lms24 deleted the lms/test-node-express-esm-http-instrumentation branch June 7, 2024 08:47
billyvg pushed a commit that referenced this pull request Jun 10, 2024
add a test to our ESM Express e2e test app to test that http instrumentation
is working correctly by ensuring a `http.client` span is captured.

---------

Co-authored-by: Francesco Novy <[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.

2 participants