hyperlane-xyz / hyperlane-monorepo

The home for Hyperlane core contracts, sdk packages, and other infrastructure
https://hyperlane.xyz
Other
240 stars 273 forks source link

Instrument Tokio Tasks with `tokio-metrics` #3239

Open daniel-savu opened 5 months ago

daniel-savu commented 5 months ago

As a start to profiling our code to find inefficiencies / bottlenecks, we should instrument all the tokio tasks in the agents codebase with tokio-metrics. There is an off-the-shelf grafana dashboard for these metrics, here. Most interestingly, we'll be able to sort by the tasks taking up the most resources:

task-list

Hopefully this will help fix https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/3454

tkporter commented 1 month ago

@daniel-savu should we close this or keep it around because we don't have an easy way to explore the metrics?