feat: Update opencensus metrics to include bigtable resource ids and rpc level metrics#214
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
kolea2
left a comment
There was a problem hiding this comment.
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
kolea2
left a comment
There was a problem hiding this comment.
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
| </dependency> | ||
| <dependency> | ||
| <groupId>io.opencensus</groupId> | ||
| <artifactId>opencensus-impl</artifactId> |
There was a problem hiding this comment.
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 |
chingor13
left a comment
There was a problem hiding this comment.
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