-
Notifications
You must be signed in to change notification settings - Fork 544
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
should instrumentation-perf-hooks move to packages/node-runtime-metrics or similar? #1956
Comments
Using this name somewhat puts a stake in the ground for this package possibly growing support for reporting things like Node.js runtime GC, heap, etc. metrics. |
Thanks for raising the issue. 👍
Hmm, you're right, I think we have some inconsistency here. In my opinion having it be an instrumentation makes the most sense:
I think
I think having it be a different name makes a lot of sense if we want to add more metrics to it. Maybe
Agreed. 👍 |
Created a PR which applies a the rename I suggested (#1970). Just a suggestion for now, will update it depending on further discussion here 🙂 |
Interesting. I'm adapting the impression I'd developed that "instrumentation" was about somehow watching (by shimming, or some mechanism like diagnostic channels) usage of some library to instrumentation being "anything that produces telemetry data". Sounds reasonable to me.
FWIW, in Java-land it is called "runtime-telemetry17" (https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/runtime-telemetry/runtime-telemetry-java17/library) -- the "17" is there I think because they also have a "runtime-telemetry8" to support ancient Java versions. So something with "runtime" and "node" in the name sounds good. I kind of wonder whether "metrics" should be in the name, but I guess it doesn't need to be. In other words: you suggested |
I'm kinda curious why opentelemetry-java-instrumentation doesn't have a host-metrics-related instr: https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/supported-libraries.md |
Hmm, I think also our naming is out-of-date, in the semantic conventions these metrics metrics are actually called System Metrics today. The |
Merged #1970 which took care of the rename. |
(I'm opening a separate issue so my Q on a merged PR doesn't get lost.
Some original discussion is here: #1902 (comment))
A new instrumentation was recently merged that uses
perf_hooks.performance.eventLoopUtilization
to provide anodejs.event_loop.utilization
metric.I wonder if this could not be an instrumentation, but instead a package like "packages/opentelemetry-host-metrics".
Perhaps a name like
@opentelemetry/node-runtime-metrics
(see https://opentelemetry.io/docs/specs/semconv/runtime/#metrics)?/cc @d4nyll, @pichlermarc
If we think this would make more sense, it would be nice to do this before a first release of
@opentelemetry/instrumentation-perf-hooks
.The text was updated successfully, but these errors were encountered: