You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/Constants.java
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/DurationUtil.java
+4-5
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,12 @@
12
12
* any time.
13
13
*/
14
14
publicfinalclassDurationUtil {
15
-
privatestaticfinaldoubleNANOS_PER_MILLI = 1e6;
15
+
privatestaticfinaldoubleNANOS_PER_SECOND = 1e9;
16
16
17
-
/** Returns the duration as milliseconds, with fractional part included. */
18
-
@SuppressWarnings("TimeUnitMismatch")
19
-
publicstaticdoubletoMillis(Durationduration) {
17
+
/** Returns the duration as seconds, with fractional part included. */
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/LongLockHandler.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ public LongLockHandler(Meter meter, ThreadGrouper grouper) {
35
35
meter
36
36
.histogramBuilder(METRIC_NAME)
37
37
.setDescription(METRIC_DESCRIPTION)
38
-
.setUnit(Constants.MILLISECONDS)
38
+
.setUnit(Constants.SECONDS)
39
39
.build();
40
40
}
41
41
@@ -73,7 +73,7 @@ public PerThreadLongLockHandler(DoubleHistogram histogram, String threadName) {
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/G1GarbageCollectionHandler.java
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/OldGarbageCollectionHandler.java
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/YoungGarbageCollectionHandler.java
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkReadHandler.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ public NetworkReadHandler(Meter meter, ThreadGrouper nameNormalizer) {
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkWriteHandler.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ public NetworkWriteHandler(Meter meter, ThreadGrouper nameNormalizer) {
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/G1GcMemoryMetricTest.java
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrCpuLockTest.java
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/PsGcMemoryMetricTest.java
Copy file name to clipboardExpand all lines: instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/SerialGcMemoryMetricTest.java
0 commit comments