-
Notifications
You must be signed in to change notification settings - Fork 11
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: introduce internal profiling #118
feat: introduce internal profiling #118
Conversation
🦋 Changeset detectedLatest commit: ada530b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
diag.debug('Starting opentelemetry SDK'); | ||
sdk.start(); | ||
|
||
if (config.programmaticImports) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this here since programmic-imports should only be enabled when api key or auth header is set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no logic issues - only animal issues 🤣
const pickPerformanceIndicator = (hrt: [number, number]) => { | ||
const speedInMs = hrtimeToMs(hrt); | ||
if (speedInMs < 0.5) { | ||
return '🚀'.repeat(3); | ||
} else if (speedInMs < 1) { | ||
return '🐌'.repeat(3); | ||
} else { | ||
return '🐢'.repeat(3); | ||
} | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I almost want to not approve because you think snails are faster than turtles 😑
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not my idea. guess who told me that 🤣
Use
HDX_NODE_ENABLE_INTERNAL_PROFILING
to enable profiling, which is useful to debug instrumentation performance impact on the start time🚀 vs 🐌 vs 🐢 ??