-
Notifications
You must be signed in to change notification settings - Fork 39
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
Improve logging and tracing #139
Comments
We should have a single key that is used to correlate multiple lines, because of the async nature of the server we can't rely on the ordering of lines (it will be interleaved from multiple requests). IMO the key should be the request id used for the distributed tracing, since for example, the RPC does not have the block details to include.
These should be done with spans from the tracing framework. It should allow us to have the timing information for the entire transaction, from the rpc down to the store. |
Agreed for requests that come through the RPC. For other things we may not have natural request IDs. For example:
|
We shouldn't use a natural ID, even if one exists. Given this is a distributed application retries will happen, and we must have different IDs for reach retry. To put this in other words, a request is not the same as the data it contains, and should not use the request's data to derive an ID. |
We already have some rudimentary logging in place, but we need to improve this quite a bit (I had to do a lot of manual logging when debugging #133). The things I think we should do are:
trace
log level.Tasks
The text was updated successfully, but these errors were encountered: