Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public ObservableLongMeasurement connections() {
.upDownCounterBuilder(metricName)
.setUnit(emitStableDatabaseSemconv() ? "{connection}" : "{connections}")
.setDescription(
"The number of connections that are currently in state described by the state attribute.")
"The number of connections that are currently in state described by the `state` attribute.")
.buildObserver();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private GenAiClientMetrics(Meter meter) {
.histogramBuilder("gen_ai.client.token.usage")
.ofLongs()
.setUnit("{token}")
.setDescription("Measures number of input and output tokens used.")
.setDescription("Number of input and output tokens used.")
.setExplicitBucketBoundariesAdvice(GenAiMetricsAdvice.CLIENT_TOKEN_USAGE_BUCKETS);
GenAiMetricsAdvice.applyClientTokenUsageAdvice(tokenUsageBuilder);
this.tokenUsage = tokenUsageBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private RpcClientMetrics(Meter meter) {
DoubleHistogramBuilder durationBuilder =
meter
.histogramBuilder("rpc.client.duration")
.setDescription("The duration of an outbound RPC invocation.")
.setDescription("Measures the duration of outbound RPC.")
.setUnit("ms");
RpcMetricsAdvice.applyClientDurationAdvice(durationBuilder);
clientDurationHistogram = durationBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private RpcServerMetrics(Meter meter) {
DoubleHistogramBuilder durationBuilder =
meter
.histogramBuilder("rpc.server.duration")
.setDescription("The duration of an inbound RPC invocation.")
.setDescription("Measures the duration of inbound RPC.")
.setUnit("ms");
RpcMetricsAdvice.applyServerDurationAdvice(durationBuilder);
serverDurationHistogram = durationBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ void collectsMetrics() {
assertThat(metric)
.hasName("rpc.client.duration")
.hasUnit("ms")
.hasDescription("Measures the duration of outbound RPC.")
.hasHistogramSatisfying(
histogram ->
histogram.hasPointsSatisfying(
Expand Down Expand Up @@ -112,6 +113,7 @@ void collectsMetrics() {
assertThat(metric)
.hasName("rpc.client.duration")
.hasUnit("ms")
.hasDescription("Measures the duration of outbound RPC.")
.hasHistogramSatisfying(
histogram ->
histogram.hasPointsSatisfying(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ void collectsMetrics() {
assertThat(metric)
.hasName("rpc.server.duration")
.hasUnit("ms")
.hasDescription("Measures the duration of inbound RPC.")
.hasHistogramSatisfying(
histogram ->
histogram.hasPointsSatisfying(
Expand Down Expand Up @@ -113,6 +114,7 @@ void collectsMetrics() {
assertThat(metric)
.hasName("rpc.server.duration")
.hasUnit("ms")
.hasDescription("Measures the duration of inbound RPC.")
.hasHistogramSatisfying(
histogram ->
histogram.hasPointsSatisfying(
Expand Down