ockam icon indicating copy to clipboard operation
ockam copied to clipboard

Integrate Tokio Console with Ockam Node

Open mrinalwadhwa opened this issue 3 years ago • 4 comments

https://tokio.rs/blog/2021-12-announcing-tokio-console https://github.com/tokio-rs/console

https://github.com/ockam-network/ockam/tree/develop/implementations/rust https://github.com/ockam-network/ockam/tree/develop/implementations/rust/ockam/ockam_node

mrinalwadhwa avatar Dec 17 '21 16:12 mrinalwadhwa

@mrinalwadhwa Can I grab this?

mattjperez avatar Feb 04 '22 14:02 mattjperez

@mattjperez that would be awesome! ❤️ @thomcc & @spacekookie can help if you have questions along the way.

mrinalwadhwa avatar Feb 04 '22 15:02 mrinalwadhwa

@thomcc @spacekookie to use tokio-console, you currently need to use RUSTFLAGS="--cfg tokio_unstable".

I've feature-gated the use of tokio-console behind #[cfg(feature= "console")]. Users can then use it by running

  1. RUSTFLAGS="--cfg tokio_unstable" cargo build --features ockam/console
  2. tokio-console in another terminal

Once tokio-console is stabilized, we will no longer need the --cfg tokio_unstable flag.

mattjperez avatar Feb 07 '22 01:02 mattjperez

Also, this thing is pretty cool.

I'm using the echoer and app examples from the How-To Guides (looping 20 times) for testing and can see stuff like this.

2022-02-06_20-46 2022-02-06_20-48

mattjperez avatar Feb 07 '22 01:02 mattjperez