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(pathfinder): add tokio-console non-default feature #179

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

kkovaacs
Copy link
Contributor

@kkovaacs kkovaacs commented Mar 7, 2022

When building with this feature enabled pathfinder enables console_subscriber
to expose tracing data for tokio-console.

NOTE: as per the tokio-console documentation this also requires building
with tokio_unstable for now, like:

RUSTFLAGS="--cfg tokio_unstable" Cargo build --features tokio-console

Copy link
Member

@CHr15F0x CHr15F0x left a comment

Choose a reason for hiding this comment

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

lgtm, just a small comment about tokio features

[dependencies]
anyhow = "1.0.44"
async-trait = "0.1.52"
# paritys scale codec locks us here
bitvec = "0.20.4"
bytes = "1.1.0"
clap = "2.33.3"
console-subscriber = { version = "0.1.3", optional = true }
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the tracing feature be enabled for tokio too?

Copy link
Contributor

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

Good, just the tokio tracing feature as @CHr15F0x mentioned.

When building with this feature enabled pathfinder enables console_subscriber
to expose tracing data for tokio-console.

NOTE: as per the tokio-console documentation this also requires building
with `tokio_unstable` for now, like:

```
RUSTFLAGS="--cfg tokio_unstable" Cargo build --features tokio-console
```
@Mirko-von-Leipzig
Copy link
Contributor

I think you can ignore the clippy for now. I've fixed it in my PR already.

@CHr15F0x
Copy link
Member

CHr15F0x commented Mar 8, 2022

@kkovaacs pls merge 😉

@kkovaacs kkovaacs merged commit 83922d3 into main Mar 9, 2022
@kkovaacs kkovaacs deleted the krisztian/tokio-console branch March 9, 2022 08:04
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.

3 participants