-
Notifications
You must be signed in to change notification settings - Fork 28
Making GrpcStreamRetrier ID configurable #492
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?
Making GrpcStreamRetrier ID configurable #492
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #492 +/- ##
============================================
- Coverage 58.15% 58.12% -0.04%
Complexity 2183 2183
============================================
Files 325 325
Lines 13216 13226 +10
Branches 1330 1331 +1
============================================
+ Hits 7686 7687 +1
- Misses 4907 4914 +7
- Partials 623 625 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
23d5b5e
to
9856a4b
Compare
9856a4b
to
337b12f
Compare
* | ||
* @return this builder | ||
*/ | ||
public Builder setDebugId(String debugId) { |
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.
LogId looks better IMO, more specific.
Or LogPrefix to be even more specific
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.
Just to be sure: are you sure that this ID won't be useful for other observability purposes?
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.
I don't think so. That identifier was created and is used for debug purpose only
Currently,
GrpcStreamRetrier
and its subclasses use autogenerated ID to identify themselves in logs. Such approach highly complicates correlating YDB SDK and application logs. To simplify logs correlation, in this PR the ID is being made configurable, so a user can provide his or her value uponGrpcStreamRetrier
creation.