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: introduce internal profiling #118

Merged
merged 10 commits into from
May 24, 2024

Conversation

wrn14897
Copy link
Contributor

@wrn14897 wrn14897 commented May 24, 2024

Use HDX_NODE_ENABLE_INTERNAL_PROFILING to enable profiling, which is useful to debug instrumentation performance impact on the start time

🚀 vs 🐌 vs 🐢 ??

Screenshot 2024-05-24 at 1 04 56 AM

Copy link

changeset-bot bot commented May 24, 2024

🦋 Changeset detected

Latest commit: ada530b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hyperdx/node-opentelemetry Minor

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

@wrn14897 wrn14897 changed the title feat: benchmark instrumentation 'patch' method feat: introduce internal profiling May 24, 2024
diag.debug('Starting opentelemetry SDK');
sdk.start();

if (config.programmaticImports) {
Copy link
Contributor Author

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

Copy link

@colehpage colehpage left a 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 🤣

Comment on lines +97 to +107
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);
}
};

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 😑

Copy link
Contributor Author

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 🤣

@kodiakhq kodiakhq bot merged commit 6b82cb1 into main May 24, 2024
3 checks passed
@kodiakhq kodiakhq bot deleted the warren/benchmark-instrumentation-patch-method branch May 24, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants