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: Expose exclude and include options for ESM loader #12910

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Jul 14, 2024

Closes #12878

I added this feature to import-in-the-middle which was released in v1.9.0:

This PR changes the hook from @opentelemetry/instrumentation/hook.mjs to import-in-the-middle/hook.mjs as it was only pasing though anyway and the otel hook doesn't pass the initialize export.

Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser 22.3 KB (0%)
@sentry/browser (incl. Tracing) 33.67 KB (0%)
@sentry/browser (incl. Tracing, Replay) 69.75 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 63.06 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 74.15 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 86.47 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 88.34 KB (0%)
@sentry/browser (incl. metrics) 26.59 KB (0%)
@sentry/browser (incl. Feedback) 38.98 KB (0%)
@sentry/browser (incl. sendFeedback) 26.92 KB (0%)
@sentry/browser (incl. FeedbackAsync) 31.54 KB (0%)
@sentry/react 25.07 KB (0%)
@sentry/react (incl. Tracing) 36.74 KB (0%)
@sentry/vue 26.41 KB (0%)
@sentry/vue (incl. Tracing) 35.55 KB (0%)
@sentry/svelte 22.44 KB (0%)
CDN Bundle 23.52 KB (0%)
CDN Bundle (incl. Tracing) 35.44 KB (0%)
CDN Bundle (incl. Tracing, Replay) 69.85 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 75.11 KB (0%)
CDN Bundle - uncompressed 69 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 104.85 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 216.63 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 229.35 KB (0%)
@sentry/nextjs (client) 36.6 KB (0%)
@sentry/sveltekit (client) 34.33 KB (0%)
@sentry/node 130.82 KB (+0.02% 🔺)
@sentry/node - without tracing 91.9 KB (+0.03% 🔺)
@sentry/aws-serverless 117.08 KB (+0.03% 🔺)

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.

Interesting! Didn't know that iitm has this possibility.

LGTM - as a follow-up, I think we should also add this to our docs. Mentioning it in the ESM guide is probably a good place but it's fairly exposed. Feel free to add it wherever you think it makes sense!

@timfish
Copy link
Collaborator Author

timfish commented Jul 15, 2024

Didn't know that iitm has this possibility.

Ah good point, I should have mentioned that I added this feature here:

@AbhiPrasad AbhiPrasad merged commit 1d3e208 into develop Jul 15, 2024
105 checks passed
@AbhiPrasad AbhiPrasad deleted the timfish/expose-iitm-options branch July 15, 2024 15: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.

Expose ESM loader exclude and include in SDK options
3 participants