-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat(mux): add successful num_registrations to logs #228
base: main
Are you sure you want to change the base?
Conversation
I may be wrong but I would think that @blevkivskyi-everstake is mainly interested in parsing these logs with some side job, in which case having two different logs may be challenging. Currently we don't do any
|
@ltitanb not sure what you mean in the last item. Also, I changed the logs so now they are equal in both cases. If |
Please see log example here:
We would like to see number of validator keys registered in each relay. Linked feature-request: |
Currently we use the mux only for
And sent a stdout:
JSON {"timestamp":"2025-01-17T15:33:33.318885Z","level":"INFO","fields":{"message":"all relay registrations finished","num_relays":5,"num_registrations":1000,"total_time":"12.471209ms"},"target":"cb_pbs::mev_boost::register_validator","spans":[{"req_id":"fb286e5c-3c59-4561-b395-a8bebaddffc2","name":"register_validators"}]} Let me know if this is ok or you need something different |
Could you share |
Sure,
JSON: {"timestamp":"2025-01-20T11:07:32.892820Z","level":"INFO","fields":{"ua":"bruno-runtime/1.37.0","num_registrations":1000},"target":"cb_pbs::routes::register_validator","spans":[{"req_id":"a0bfa554-2ddc-4816-9cb3-9366bc166bc2","name":"register_validators"}]}
{"timestamp":"2025-01-20T11:07:32.908335Z","level":"DEBUG","fields":{"message":"registration successful","code":"200","latency":"14.306375ms"},"target":"cb_pbs::mev_boost::register_validator","spans":[{"req_id":"a0bfa554-2ddc-4816-9cb3-9366bc166bc2","name":"register_validators"},{"relay_id":"relay-1","retry":0,"name":"handler"}]}
{"timestamp":"2025-01-20T11:07:32.908595Z","level":"INFO","fields":{"message":"register validator successful"},"target":"cb_pbs::routes::register_validator","spans":[{"req_id":"a0bfa554-2ddc-4816-9cb3-9366bc166bc2","name":"register_validators"}]}
{"timestamp":"2025-01-20T11:07:32.909041Z","level":"DEBUG","fields":{"message":"registration successful","code":"200","latency":"14.95625ms"},"target":"cb_pbs::mev_boost::register_validator","spans":[{"req_id":"a0bfa554-2ddc-4816-9cb3-9366bc166bc2","name":"register_validators"},{"relay_id":"relay-5","retry":0,"name":"handler"}]}
{"timestamp":"2025-01-20T11:07:32.909210Z","level":"DEBUG","fields":{"message":"registration successful","code":"200","latency":"15.188834ms"},"target":"cb_pbs::mev_boost::register_validator","spans":[{"req_id":"a0bfa554-2ddc-4816-9cb3-9366bc166bc2","name":"register_validators"},{"relay_id":"relay-3","retry":0,"name":"handler"}]}
{"timestamp":"2025-01-20T11:07:32.909785Z","level":"DEBUG","fields":{"message":"registration successful","code":"200","latency":"15.690709ms"},"target":"cb_pbs::mev_boost::register_validator","spans":[{"req_id":"a0bfa554-2ddc-4816-9cb3-9366bc166bc2","name":"register_validators"},{"relay_id":"relay-2","retry":0,"name":"handler"}]}
{"timestamp":"2025-01-20T11:07:32.910303Z","level":"DEBUG","fields":{"message":"registration successful","code":"200","latency":"16.177416ms"},"target":"cb_pbs::mev_boost::register_validator","spans":[{"req_id":"a0bfa554-2ddc-4816-9cb3-9366bc166bc2","name":"register_validators"},{"relay_id":"relay-4","retry":0,"name":"handler"}]}
{"timestamp":"2025-01-20T11:07:32.910387Z","level":"INFO","fields":{"message":"all relay registrations finished","num_relays":5,"num_registrations":1000,"total_time":"16.712375ms"},"target":"cb_pbs::mev_boost::register_validator","spans":[{"req_id":"a0bfa554-2ddc-4816-9cb3-9366bc166bc2","name":"register_validators"}]} In this case, the Btw, batch size configuration is being addressed in #244. |
For each validator register request, log the number of registered validators and the number of relays where they was successfully registered
Close #218