Replies: 2 comments
-
|
The issue is that you can't add a filter after the subscriber has already been initialised. It might be possible to have a reload layer around an |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Also. It's better to add the layers individually with a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have something (simplified here) like this
My issue is the
console_subscriberdoes not see the tokio::spawned background task in [1]apm_layer.Due to not being able to setup the layers in phases, I can't seem to figure out how to acheive this.
I have attempted to use a
reload::Layeraround aOption<Vec<Layer>>to defer addingapm_layerandlogging_layeruntil after.initbut i geta none to suprising panic, since the layer is initially added as
Nonewhich skips a bunch of needed setupI'm not sure how to work around this at this point. Its not the biggest deal, but essentially all tokio::spawn before
.initare not visible in the tokio-console.Thanks
Beta Was this translation helpful? Give feedback.
All reactions