#Using tokio-console.
10 messages · Page 1 of 1 (latest)
Can you put your tracing subscriber initialisation here.
That’s likely to be where the problem is.
It is, I switched to console_subscriber: :init() and it worked.
Before I was using a registry.with(console_subscriber:: spawn()).
Sorry, hard to share the exact code because my work computer is locked down
Did you also have other layers when used it with the registry?
Yes, syslog subscriber layer and EnvFilter layer
Are you adding the env filter to the registry using with or are you adding it to some layer?
(Using with_filter on the layer itself)
I am using with(filter)
That filter is global for all layers then. Which means you’re probably filtering out the spans and events that come from tokio’s instrumentation, and that’s why the console doesn’t get anything.