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

feat: support for tokio-console #72

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

dan-da
Copy link
Collaborator

@dan-da dan-da commented Nov 19, 2023

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

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
Copy link
Member

@Sword-Smith Sword-Smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks exciting :)

Hope we can get rid of unstable down the line though. I hope unstable will work on Windows. If not, then maybe one could handle this with a environment variable that is only set on Unix/Linux.
cf. https://docs.rs/tokio/latest/tokio/#unstable-features

@dan-da
Copy link
Collaborator Author

dan-da commented Nov 24, 2023

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.

@dan-da dan-da merged commit f1c75fe into Neptune-Crypto:master Nov 24, 2023
3 checks passed
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