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: java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/OpenTelemetryDatastoreMetricsRecorder.java
+5-31Lines changed: 5 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -49,12 +49,11 @@ class OpenTelemetryDatastoreMetricsRecorder extends OpenTelemetryMetricsRecorder
49
49
privatefinalDoubleHistogramtransactionLatency;
50
50
privatefinalLongCountertransactionAttemptCount;
51
51
52
-
// GAX operation/attempt latency metrics re-registered under the Datastore meter with the
53
-
// plural names required by the internal Cloud Monitoring descriptor. These override the
54
-
// singular-named histograms registered by the parent GAX class.
55
-
privatefinalDoubleHistogramoperationLatency;
56
-
privatefinalDoubleHistogramattemptLatency;
57
-
52
+
// Note: Standard GAX RPC metrics (operation_latency, attempt_latency, etc.) are handled by the
53
+
// base OpenTelemetryMetricsRecorder class. Those metrics are inherited from the parent classes.
54
+
// However, the internal metrics expect plural suffixes (e.g. `latencies` instead of `latency`).
55
+
// The discrepancy between the singular GAX names and the plural internal Cloud Monitoring names
Copy file name to clipboardExpand all lines: java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/OpenTelemetryDatastoreMetricsRecorderTest.java
+5-10Lines changed: 5 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -175,12 +175,11 @@ public void recordAttemptLatency_recordsHistogramWithAttributes() {
0 commit comments