Fix time units in HTTP & RPC metrics (#4963)
This commit is contained in:
parent
88121c1583
commit
0fd7b8baa0
|
@ -54,7 +54,7 @@ public final class HttpClientMetrics implements RequestListener {
|
|||
duration =
|
||||
meter
|
||||
.histogramBuilder("http.client.duration")
|
||||
.setUnit("milliseconds")
|
||||
.setUnit("ms")
|
||||
.setDescription("The duration of the outbound HTTP request")
|
||||
.build();
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public final class HttpServerMetrics implements RequestListener {
|
|||
duration =
|
||||
meter
|
||||
.histogramBuilder("http.server.duration")
|
||||
.setUnit("milliseconds")
|
||||
.setUnit("ms")
|
||||
.setDescription("The duration of the inbound HTTP request")
|
||||
.build();
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class RpcClientMetrics implements RequestListener {
|
|||
meter
|
||||
.histogramBuilder("rpc.client.duration")
|
||||
.setDescription("The duration of an outbound RPC invocation")
|
||||
.setUnit("milliseconds")
|
||||
.setUnit("ms")
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class RpcServerMetrics implements RequestListener {
|
|||
meter
|
||||
.histogramBuilder("rpc.server.duration")
|
||||
.setDescription("The duration of an inbound RPC invocation")
|
||||
.setUnit("milliseconds")
|
||||
.setUnit("ms")
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
|
@ -93,6 +93,7 @@ class HttpClientMetricsTest {
|
|||
metric ->
|
||||
assertThat(metric)
|
||||
.hasName("http.client.duration")
|
||||
.hasUnit("ms")
|
||||
.hasDoubleHistogram()
|
||||
.points()
|
||||
.satisfiesExactly(
|
||||
|
|
|
@ -132,6 +132,7 @@ class HttpServerMetricsTest {
|
|||
metric ->
|
||||
assertThat(metric)
|
||||
.hasName("http.server.duration")
|
||||
.hasUnit("ms")
|
||||
.hasDoubleHistogram()
|
||||
.points()
|
||||
.satisfiesExactly(
|
||||
|
|
|
@ -99,6 +99,7 @@ class RpcClientMetricsTest {
|
|||
metric ->
|
||||
MetricAssertions.assertThat(metric)
|
||||
.hasName("rpc.client.duration")
|
||||
.hasUnit("ms")
|
||||
.hasDoubleHistogram()
|
||||
.points()
|
||||
.satisfiesExactly(
|
||||
|
@ -132,6 +133,7 @@ class RpcClientMetricsTest {
|
|||
metric ->
|
||||
MetricAssertions.assertThat(metric)
|
||||
.hasName("rpc.client.duration")
|
||||
.hasUnit("ms")
|
||||
.hasDoubleHistogram()
|
||||
.points()
|
||||
.satisfiesExactly(
|
||||
|
|
|
@ -99,6 +99,7 @@ class RpcServerMetricsTest {
|
|||
metric ->
|
||||
MetricAssertions.assertThat(metric)
|
||||
.hasName("rpc.server.duration")
|
||||
.hasUnit("ms")
|
||||
.hasDoubleHistogram()
|
||||
.points()
|
||||
.satisfiesExactly(
|
||||
|
@ -131,6 +132,7 @@ class RpcServerMetricsTest {
|
|||
metric ->
|
||||
MetricAssertions.assertThat(metric)
|
||||
.hasName("rpc.server.duration")
|
||||
.hasUnit("ms")
|
||||
.hasDoubleHistogram()
|
||||
.points()
|
||||
.satisfiesExactly(
|
||||
|
|
Loading…
Reference in New Issue