-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref(core): Extract and reuse getFinalScopeData helper
#18585
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
base: develop
Are you sure you want to change the base?
Conversation
size-limit report 📦
|
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
|
hmm not fully sure about the bundle size measurements here tbh. It makes sense that it slightly increases for the minimal npm package config (1 occurance) and then again decreases if you add logs or metrics (2 occurances). Not sure why adding logs AND metrics (3 occurances) actually increases size again 🤔 |
Pre-work for #18160
We have multiple places in which we need to combine the
ScopeDataof global, isolation and current scopes, to apply this data to telemetry items (events, logs, metrics, soon also spansV2). Previously, we did this in-place or with helpers that were not re-used. This PR now unifies the various locations to one helper from core which can be reused everywhere.Closes #18586 (added automatically)