-
Notifications
You must be signed in to change notification settings - Fork 4.6k
stats: process RPC stats/tracing in health and ORCA producers only if a handler is configured #8874
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8874 +/- ##
==========================================
+ Coverage 83.15% 83.28% +0.12%
==========================================
Files 414 414
Lines 32751 32752 +1
==========================================
+ Hits 27235 27278 +43
+ Misses 4096 4070 -26
+ Partials 1420 1404 -16
🚀 New features to boost your workflow:
|
|
Curious, how did you run into this? Is there an issue for this? |
Can you please elaborate on this? My understanding is that when the I think it would be good to open an issue that documents all the details and the approach taken (and why this is the preferred approach, if there are other approached available at all). Thanks. |
| } | ||
|
|
||
| s, err := as.transport.NewStream(as.ctx, as.callHdr) | ||
| s, err := as.transport.NewStream(as.ctx, as.callHdr, nil) |
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.
Is this how the health and ORCA streams get a nil stats handler? We want to eliminate this duplication between the regular client stream and the non-retry client stream at some point. We tried to prioritize that work for Q1, but it didn't happen. This has been a maintenance burden for a while now, and a source of hard to find bugs.
This resolves an issue where below log statement keeps printing repeatedly:
"ERROR: [otel-plugin] ctx passed into client side stats handler metrics event handling has no client attempt data present".
When new stream is created for health/orca producers, stats and tracing is not setup. However, this fact is ignored during RPC and an error logs is printed to denote that stats cannot be handled. We will enable stream to have its own reference to the stats handler and only process per RPC implementation when it is present (like in case of regular data streams).
RELEASE NOTES: