examples/opentelemetry: enabling experimental metrics#8441
examples/opentelemetry: enabling experimental metrics#8441arjan-bal merged 5 commits intogrpc:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8441 +/- ##
==========================================
+ Coverage 82.31% 82.48% +0.16%
==========================================
Files 414 413 -1
Lines 40464 40513 +49
==========================================
+ Hits 33308 33416 +108
+ Misses 5791 5744 -47
+ Partials 1365 1353 -12 🚀 New features to boost your workflow:
|
|
Please link the comment in response to which this PR has been raised. @vinothkumarr227 |
|
@arjan-bal This fix was made following the review comment from in this discussion |
| Metrics: opentelemetry.DefaultMetrics().Add( | ||
| "grpc.client.attempt.started", | ||
| "grpc.client.attempt.duration", | ||
| "grpc.xds_client.resource_updates_valid", |
There was a problem hiding this comment.
Correct me if I am wrong but I dont think we are using xds in this example , so using xds metrics might not make sense. Can you change to use some other metrics? Example : grpc.lb.pick_first. connection_attempts_succeeded
There was a problem hiding this comment.
@eshitachandwani , Thanks for the review! I don’t think we need to change this example — we’ve already mentioned that it’s meant to demonstrate experimental metrics. Also, this is aligned with the discussion here: grpc-go#8234 (comment).
There was a problem hiding this comment.
But the example in my opinion should be a working example , like if someone is trying to run the example , they should be able to see some metrics. And since the example is not using xds , there will be no metrics for the xds client.
There was a problem hiding this comment.
Thanks for the feedback! I’ve updated the example to use pick_first with a valid address, and it now emits metrics
|
Adding @arjan-bal for a second review. |
Fixes #8311
RELEASE NOTES: N/A