-
Notifications
You must be signed in to change notification settings - Fork 97
feat: Update opencensus metrics to include bigtable resource ids and rpc level metrics #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1e414f4
to
0afccbb
Compare
Codecov Report
@@ Coverage Diff @@
## master #214 +/- ##
============================================
+ Coverage 79.89% 80.69% +0.79%
- Complexity 992 1049 +57
============================================
Files 99 99
Lines 6447 6541 +94
Branches 340 344 +4
============================================
+ Hits 5151 5278 +127
+ Misses 1118 1082 -36
- Partials 178 181 +3 Continue to review full report at Codecov.
|
cd9d8a5
to
c383131
Compare
c383131
to
b0d92dd
Compare
…rpc level metrics This PR refactors opencensus metrics integration to use gax's ApiTracers. Which allows this client to instrument individual attempts and tag everything with bigtable resource ids
b0d92dd
to
7f5df26
Compare
...loud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java
Outdated
Show resolved
Hide resolved
...oud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/metrics/MetricsTracer.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though I think this needs a rebase and code format fixes
...loud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To get clirr to pass, please add a clirr-ignored-differences.xml
file. Example: https://github.com/googleapis/java-trace/blob/master/grpc-google-cloud-trace-v1/clirr-ignored-differences.xml
Adding do not merge - want to go through the merge conflicts that were resolved to ensure I didn't miss anything in the process. |
...bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/metrics/MetricsTracerTest.java
Show resolved
Hide resolved
google-cloud-bigtable/pom.xml
Outdated
@@ -124,6 +124,10 @@ | |||
<groupId>io.opencensus</groupId> | |||
<artifactId>opencensus-api</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>io.opencensus</groupId> | |||
<artifactId>opencensus-impl</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for being confusing before, but opencensus-impl should stay as a test dep. I just meant that impl-core should be transitive. As it stands endusers should add -impl to activate opencensus (I just wanted to avoid users having to specify both
...loud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java
Show resolved
Hide resolved
...table/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java
Show resolved
Hide resolved
I think this looks good, wanna take it for spin and merge it? |
asking @chingor13 for a extra look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Is the CompositeTracer something we should look to upstream into gax that would be useful to others?
This PR refactors opencensus metrics integration to use gax's ApiTracers.
Which allows this client to instrument individual attempts and tag everything
with bigtable resource ids
Note: clirr is complaining about removed classes, but they are all marked as InternalApi