near / pagoda-relayer-rs

Rust Reference Implementation of Relayer for NEP-366 Meta Transactions
MIT License
32 stars 15 forks source link

Tracing and Flamegraphs/charts #47

Closed anthony-near closed 10 months ago

anthony-near commented 1 year ago

To help identify performance bottlenecks, such as the one identified with /create_account_atomic when deployed, more tracing features have been added. We can now see the time taken for each request to send a response:

2023-11-15T21:15:30.881115Z DEBUG request{method=GET uri=/get_allowance version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=27 ms status=200
2023-11-15T21:16:00.230494Z DEBUG request{method=POST uri=/send_meta_tx version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=3078 ms status=500
2023-11-15T21:16:32.513769Z DEBUG request{method=POST uri=/create_account_atomic version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=2235 ms status=500