-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Add tracing to txn request. #11191
Comments
My general preference would be that we retain as much structure as possible and try to avoid putting structured data into strings via some serialization. I don't know zap that well, unfortunately. What does |
Oh wait, it will be traced in the same message, so we would need better way to differentiate within the message. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Adding tracing to txn request is kind of different from to range or put request. A txn request could have couple of range, put, delete and txn operations. I think it will be confusing to just put all of these operations' traces together. My first idea is to use subtrace for each operations. The basic structure is like this:
The potential concern on this approach is that the nested trace is not quite friendly with structure logging.
My second thought is adding the sub requests' information into step's detailed fields.
The drawback of this one is that it will increase the volume of log and may be confusing especially when we have nested transactions.
Do you have some suggestions on the arrangement of txn tracing?
The text was updated successfully, but these errors were encountered: