Logging improvement for repl dev#679
Merged
Merged
Conversation
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #679 +/- ##
==========================================
+ Coverage 56.51% 65.99% +9.48%
==========================================
Files 108 109 +1
Lines 10300 11369 +1069
Branches 1402 1557 +155
==========================================
+ Hits 5821 7503 +1682
+ Misses 3894 3127 -767
- Partials 585 739 +154 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4afa717 to
b8930ef
Compare
rdev name (e.g rdev1) is human friendly but not visible outside of the Homestore, only group_id. Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
the traceID replicate to follower through log and data channel(push_data). The target is we can use single traceID to get logs across replicas for the request. Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
Also adjust some of the logging level. Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
Collaborator
Author
|
sample log |
yuwmao
approved these changes
Apr 3, 2025
xiaoxichen
pushed a commit
to eBay/HomeObject
that referenced
this pull request
Apr 3, 2025
Relevant changes in HomeStore: eBay/HomeStore#679
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The general idea is application (user of HS) can optionally pass in a trace_id, now it is a uint64. The trace_id will be included in all loggings relate with this rreq , and the trace_id will be pushed to follower through both raft channel and data channel.
With this , when application see an issue , with the trace_id, we can use a single search pattern to search across all replicas and get all related log for that request.
Note this is a breaking change as we change raft journal format.