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
fix: make client side metrics tag in sync with server (#2401)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-bigtable/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
- [ ] Rollback plan is reviewed and LGTMed
- [ ] All new data plane features have a completed end to end testing plan
Fixes #<issue_number_goes_here> ☕️
If you write sample code, please follow the [samples format](
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).
Copy file name to clipboardexpand all lines: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/metrics/BuiltinMetricsTracer.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -79,9 +79,9 @@ class BuiltinMetricsTracer extends BigtableTracer {
Copy file name to clipboardexpand all lines: google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/metrics/BuiltinMetricsTracerTest.java
+6-6
Original file line number
Diff line number
Diff line change
@@ -395,7 +395,7 @@ public void testGfeMetrics() {
395
395
.put(STATUS_KEY, "UNAVAILABLE")
396
396
.put(TABLE_ID_KEY, TABLE)
397
397
.put(ZONE_ID_KEY, "global")
398
-
.put(CLUSTER_ID_KEY, "unspecified")
398
+
.put(CLUSTER_ID_KEY, "<unspecified>")
399
399
.put(METHOD_KEY, "Bigtable.ReadRows")
400
400
.put(CLIENT_NAME_KEY, CLIENT_NAME)
401
401
.build();
@@ -549,7 +549,7 @@ public void testMutateRowAttemptsTagValues() {
549
549
.put(STATUS_KEY, "UNAVAILABLE")
550
550
.put(TABLE_ID_KEY, TABLE)
551
551
.put(ZONE_ID_KEY, "global")
552
-
.put(CLUSTER_ID_KEY, "unspecified")
552
+
.put(CLUSTER_ID_KEY, "<unspecified>")
553
553
.put(METHOD_KEY, "Bigtable.MutateRow")
554
554
.put(CLIENT_NAME_KEY, CLIENT_NAME)
555
555
.put(STREAMING_KEY, false)
@@ -619,7 +619,7 @@ public void testMutateRowsRpcError() {
619
619
.put(STATUS_KEY, "NOT_FOUND")
620
620
.put(TABLE_ID_KEY, BAD_TABLE_ID)
621
621
.put(ZONE_ID_KEY, "global")
622
-
.put(CLUSTER_ID_KEY, "unspecified")
622
+
.put(CLUSTER_ID_KEY, "<unspecified>")
623
623
.put(METHOD_KEY, "Bigtable.MutateRows")
624
624
.put(CLIENT_NAME_KEY, CLIENT_NAME)
625
625
.put(STREAMING_KEY, false)
@@ -640,7 +640,7 @@ public void testReadRowsAttemptsTagValues() {
640
640
.put(STATUS_KEY, "UNAVAILABLE")
641
641
.put(TABLE_ID_KEY, TABLE)
642
642
.put(ZONE_ID_KEY, "global")
643
-
.put(CLUSTER_ID_KEY, "unspecified")
643
+
.put(CLUSTER_ID_KEY, "<unspecified>")
644
644
.put(METHOD_KEY, "Bigtable.ReadRows")
645
645
.put(CLIENT_NAME_KEY, CLIENT_NAME)
646
646
.put(STREAMING_KEY, true)
@@ -751,7 +751,7 @@ public void testPermanentFailure() {
751
751
.toBuilder()
752
752
.put(STATUS_KEY, "NOT_FOUND")
753
753
.put(TABLE_ID_KEY, BAD_TABLE_ID)
754
-
.put(CLUSTER_ID_KEY, "unspecified")
754
+
.put(CLUSTER_ID_KEY, "<unspecified>")
755
755
.put(ZONE_ID_KEY, "global")
756
756
.put(STREAMING_KEY, true)
757
757
.put(METHOD_KEY, "Bigtable.ReadRows")
@@ -776,7 +776,7 @@ public void testRemainingDeadline() {
0 commit comments