Uh oh!
There was an error while loading. Please reload this page.
feat: update tracers to use built in metrics - #1244
Conversation
25d61e5 to
ca28be6Comparedb124f2 to
8a2aa0eCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
38b2804 to
353aeb7CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
a198247 to
82e63f0CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| statsRecorderWrapper)); | ||
| final long applicationLatency = 200; | ||
| final AtomicInteger counter = new AtomicInteger(0); |
There was a problem hiding this comment.
Hmm, because it's used in response observer so it needs to be final, and I also need to update the value, so i need to AtomicInteger here?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| assertThat(zone.getAllValues()).containsExactly(UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED); | ||
| assertThat(cluster.getAllValues()).containsExactly(UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED); | ||
| assertThat(status.getAllValues()).containsExactly("UNAVAILABLE", "UNAVAILABLE", "OK", "OK"); | ||
| } |
There was a problem hiding this comment.
Should there be a test that checks what happens when a retry attempt changes cluster/zone?
There was a problem hiding this comment.
It will be! In my next pr :)
Uh oh!
There was an error while loading. Please reload this page.
🤖 I have created a release *beep* *boop* --- ## [2.9.0](v2.8.0...v2.9.0) (2022-06-30) ### Features * add built-in metric constants ([#1243](#1243)) ([b1fc00a](b1fc00a)) * **generated:** Add storage_utilization_gib_per_node to Autoscaling target ([a4c6621](a4c6621)) * **generated:** Cloud Bigtable Undelete Table service and message proto files ([a4c6621](a4c6621)) * update tracers to use built in metrics ([#1244](#1244)) ([df77560](df77560)) ### Bug Fixes * fix flaky test ([#1293](#1293)) ([146c824](146c824)) * remove the shaded profile from root pom ([#1274](#1274)) ([5eafcc3](5eafcc3)) * rename HeaderTracer callables to BigtableTracer callables ([#1276](#1276)) ([e0bd6c9](e0bd6c9)) * rename response observer and callbacks ([#1291](#1291)) ([2705a47](2705a47)) ### Documentation * **sample:** update README for native image sample ([#1281](#1281)) ([4a3a2c9](4a3a2c9)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#1285](#1285)) ([1dc7787](1dc7787)) * update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#1283](#1283)) ([ba7844a](ba7844a)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#1284](#1284)) ([75d0066](75d0066)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
* feat: add built in metrics measure and views * remove status from application latency * Rename methods and add comments * update based on comments * feat: update tracers to use built in metrics * update on comments * make stopwatch thread safe * update comments * calculate application latency correctly * remove unused check * clean up tests * fix typo * update test * fix flaky test * fix retry count
🤖 I have created a release *beep* *boop* --- ## [2.9.0](v2.8.0...v2.9.0) (2022-06-30) ### Features * add built-in metric constants ([#1243](#1243)) ([b1fc00a](b1fc00a)) * **generated:** Add storage_utilization_gib_per_node to Autoscaling target ([a4c6621](a4c6621)) * **generated:** Cloud Bigtable Undelete Table service and message proto files ([a4c6621](a4c6621)) * update tracers to use built in metrics ([#1244](#1244)) ([df77560](df77560)) ### Bug Fixes * fix flaky test ([#1293](#1293)) ([146c824](146c824)) * remove the shaded profile from root pom ([#1274](#1274)) ([5eafcc3](5eafcc3)) * rename HeaderTracer callables to BigtableTracer callables ([#1276](#1276)) ([e0bd6c9](e0bd6c9)) * rename response observer and callbacks ([#1291](#1291)) ([2705a47](2705a47)) ### Documentation * **sample:** update README for native image sample ([#1281](#1281)) ([4a3a2c9](4a3a2c9)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#1285](#1285)) ([1dc7787](1dc7787)) * update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#1283](#1283)) ([ba7844a](ba7844a)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#1284](#1284)) ([75d0066](75d0066)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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:
Fixes #<issue_number_goes_here> ☕️
If you write sample code, please follow the samples format.