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

replace "1" with the appropriate units #8668

Merged
merged 9 commits into from
Jun 14, 2023
Merged

Conversation

zeitlinger
Copy link
Member

replace "1" with the appropriate units and don't fall back to "1" if the unit is unknown

@zeitlinger zeitlinger requested a review from a team June 7, 2023 16:27
@trask trask added this to the v1.27.0 milestone Jun 8, 2023
@@ -89,7 +89,7 @@ List<AutoCloseable> registerObservers(
meter
.gaugeBuilder("process.runtime.jvm.system.cpu.load_1m")
.setDescription("Average CPU load of the whole system for the last minute")
.setUnit("1")
.setUnit("{run_queue_length}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zeitlinger I hope it's ok, I'm going to accept this change and merge, so we can get the (more important) parts into the upcoming release, since we don't have resolution yet on open-telemetry/semantic-conventions#95

Suggested change
.setUnit("{run_queue_length}")
.setUnit("1")

…src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Cpu.java
…src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/CpuTest.java
@trask trask enabled auto-merge (squash) June 14, 2023 00:11
@trask trask merged commit 8433735 into open-telemetry:main Jun 14, 2023
@zeitlinger zeitlinger deleted the fix_units branch June 14, 2023 06:23
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.

3 participants