Bigtable: instrument client with Opencensus metrics#6143
Merged
igorbernstein2 merged 19 commits intogoogleapis:masterfrom Sep 3, 2019
Merged
Bigtable: instrument client with Opencensus metrics#6143igorbernstein2 merged 19 commits intogoogleapis:masterfrom
igorbernstein2 merged 19 commits intogoogleapis:masterfrom
Conversation
# Conflicts: # google-cloud-clients/google-cloud-bigtable/pom.xml
rahulKQL
reviewed
Aug 27, 2019
...loud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java
Outdated
Show resolved
Hide resolved
...loud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java
Outdated
Show resolved
Hide resolved
...loud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java
Outdated
Show resolved
Hide resolved
* clean up code
Codecov Report
@@ Coverage Diff @@
## master #6143 +/- ##
===========================================
+ Coverage 47.23% 47.53% +0.3%
- Complexity 27458 27470 +12
===========================================
Files 2526 2534 +8
Lines 274535 274918 +383
Branches 30579 31408 +829
===========================================
+ Hits 129668 130674 +1006
- Misses 134446 134611 +165
+ Partials 10421 9633 -788
Continue to review full report at Codecov.
|
kolea2
reviewed
Aug 29, 2019
| of mutations per BulkMutation. | ||
|
|
||
|
|
||
| By default, the functionality is disabled. To enable, you need to add a couple of |
Contributor
There was a problem hiding this comment.
I would reword: "To enable, please follow the instructions below:"
Contributor
Author
There was a problem hiding this comment.
changed the wording, PTAL
| libraryDependencies += "io.opencensus" % "opencensus-exporter-stats-stackdriver" % "0.23.0" | ||
| ``` | ||
|
|
||
| Then at the start of your application configure the exporter and enable the Bigtable stats views: |
| } | ||
|
|
||
| /** | ||
| * Enables Opencensus metric aggregations. |
Contributor
There was a problem hiding this comment.
minor - change all occurrences of "Opencensus" to "OpenCensus"
| * }</pre> | ||
| */ | ||
| @BetaApi("Opencensus stats integration is currently unstable and may change in the future") | ||
| public static void enableOpencensusStats() { |
| * <li>Add tracing & metrics. | ||
| * </ul> | ||
| */ | ||
| @Deprecated |
| import javax.annotation.Nonnull; | ||
|
|
||
| /** | ||
| * @deprecated Please use {@link MeasuredMutateRowsCallableV2}. |
Contributor
There was a problem hiding this comment.
please add an internal use only comment as well
kolea2
approved these changes
Aug 30, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It adds stats to logical operations for things like:
This should allow users to better debug the performance of the client. Allowing to debug scenarios like high perceived latency on the client side, but no latency visible on the serverside due to retries.
This also adds a more user friendly way to enable data collection by exposing a method on the settings class.
Main changes: