gRPC metrics: Add measures and views for real-time metrics in streaming RPCs.#1563
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1563 +/- ##
============================================
- Coverage 82.48% 82.21% -0.28%
+ Complexity 1792 1733 -59
============================================
Files 262 259 -3
Lines 8215 8107 -108
Branches 793 770 -23
============================================
- Hits 6776 6665 -111
- Misses 1193 1209 +16
+ Partials 246 233 -13
Continue to review full report at Codecov.
|
3a0e68a to
d0bb674
Compare
be50c5d to
bd37f10
Compare
|
|
|
Reverted bd37f10. We can do some internal mapping to get the counts. |
bd37f10 to
d14383e
Compare
zhangkun83
left a comment
There was a problem hiding this comment.
Mostly LGTM, although we need to resolve the question on the other PR as it may affect this one.
| public static final MeasureDouble GRPC_CLIENT_SENT_BYTES_PER_MESSAGE = | ||
| Measure.MeasureDouble.create( | ||
| "grpc.io/client/sent_bytes_per_message", | ||
| "Total bytes sent, recorded for each message in the RPC.", |
There was a problem hiding this comment.
There is no "the RPC" to refer to. I would instead say "recorded for each RPC message".
songy23
left a comment
There was a problem hiding this comment.
Yes, I'll hold off this PR until we have an agreement on census-instrumentation/opencensus-specs#206 (comment). After that all the following steps should be trivial.
| public static final MeasureDouble GRPC_CLIENT_SENT_BYTES_PER_MESSAGE = | ||
| Measure.MeasureDouble.create( | ||
| "grpc.io/client/sent_bytes_per_message", | ||
| "Total bytes sent, recorded for each message in the RPC.", |
db02c99 to
43b0edc
Compare
|
Updated per census-instrumentation/opencensus-specs#212, PTAL. |
43b0edc to
7fc858e
Compare
|
Thanks! |
Blocked waiting on census-instrumentation/opencensus-specs#206.The new views won't be included in the default view set and need to be registered separately.