Neptune-Crypto / neptune-core

anonymous peer-to-peer cash
Apache License 2.0
23 stars 7 forks source link

feat: support for tokio-console #72

Closed dan-da closed 8 months ago

dan-da commented 8 months ago

Adds --tokio-console boolean cli arg to neptune-core.

When this flag is present, logging is configured to emit tokio tracing information and send it to localhost:6669 for processing by tokio-console.

This requires building tokio with the tokio_unstable build flag. This is specified in the new .cargo/config.toml

see: https://github.com/tokio-rs/console

Here's a screenshot of the resources view:

screenshot

dan-da commented 8 months ago

I have my doubts that it will move out of unstable any time soon. I'm viewing this as a temporary thing and maybe we disable or remove it or improve build configurability before mainnet.