6929 - fixing unit for runtime.jvm.gc.count
MODIFY
instrumentation/runtime-metrics/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/GarbageCollector.java
instrumentation/runtime-metrics/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/GarbageCollector.java
@@ -56,7 +56,7 @@ public final class GarbageCollector {
.counterBuilder("runtime.jvm.gc.count")
.setDescription(
"The number of collections that have occurred for a given JVM garbage collector.")
- .setUnit("collections")
+ .setUnit("{collections}")
.buildWithCallback(
resultLongObserver -> {
for (int i = 0; i < garbageCollectors.size(); i++) {

6929 - fixing unit for runtime.jvm.gc.count (#6930)