Skip to content
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

Update launcher traces to have request ids for http requests #695

Merged
merged 10 commits into from
Dec 18, 2023

Conversation

rimrakhimov
Copy link
Member

@rimrakhimov rimrakhimov commented Dec 10, 2023

Add the notion of request_id into service logs and update tracing in json format to be more informative. Update eth-bytecode-db service to make use of new json logs

Example

{"timestamp":"2023-12-11T08:56:06.881552Z","level":"INFO","message":"Started HTTP request processing","target":"tracing_actix_web::middleware","span":{"client_ip":"127.0.0.1","endpoint":"/api/v2/verifier/solidity/sources:verify-standard-json","method":"POST","request_id":"1691c09e-85f2-41a5-9a88-4ac7ba9bc968","name":"HTTP request"}}
{"timestamp":"2023-12-11T08:56:06.881986Z","level":"INFO","chain_id":"","contract_address":"","target":"eth_bytecode_db_server::services::solidity_verifier","span":{"request_id":"1691c09e-85f2-41a5-9a88-4ac7ba9bc968","name":"verify_standard_json"}}
{"timestamp":"2023-12-11T08:56:06.882173Z","level":"INFO","message":"sending request to the verifier","target":"eth_bytecode_db::verification::handlers::solidity_standard_json","span":{"request_id":"1691c09e-85f2-41a5-9a88-4ac7ba9bc968","name":"verify_standard_json"}}
{"timestamp":"2023-12-11T08:56:06.936227Z","level":"INFO","message":"response from the verifier","status":1,"message":"OK","target":"eth_bytecode_db::verification::handlers::solidity_standard_json","span":{"request_id":"1691c09e-85f2-41a5-9a88-4ac7ba9bc968","name":"verify_standard_json"}}
{"timestamp":"2023-12-11T08:56:06.990655Z","level":"INFO","message":"Request processed successfully","target":"eth_bytecode_db_server::services::verifier_base","span":{"request_id":"1691c09e-85f2-41a5-9a88-4ac7ba9bc968","name":"verify_standard_json"}}
{"timestamp":"2023-12-11T08:56:06.990969Z","level":"INFO","message":"Finished HTTP request processing","target":"tracing_actix_web::middleware","span":{"client_ip":"127.0.0.1","duration":"109373","endpoint":"/api/v2/verifier/solidity/sources:verify-standard-json","method":"POST","request_id":"1691c09e-85f2-41a5-9a88-4ac7ba9bc968","unit":"microsecond","name":"HTTP request"}}

@rimrakhimov rimrakhimov force-pushed the rimrakhimov/verifier/tracing-logs branch from da33ba8 to 02e6f35 Compare December 18, 2023 10:06
@rimrakhimov rimrakhimov merged commit b5bac55 into main Dec 18, 2023
5 checks passed
@rimrakhimov rimrakhimov deleted the rimrakhimov/verifier/tracing-logs branch December 18, 2023 13:52
@rimrakhimov rimrakhimov mentioned this pull request Dec 20, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants