Replies: 1 comment 3 replies
-
One thing I noticed is that in your code for configuring tracing, you are configuring your Try changing the call to // ...
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
// ... You may need to enable the "env-filter" feature flag of the |
Beta Was this translation helpful? Give feedback.
-
[referred from tokio-rs/axum#752 (comment)]
I have an Axum-based project successfully tracing to a file with one exception, request tracing.
I've followed the tracing-aka-logging example to make https://github.com/kellytk/axum-trace. The code runs as expected tracing to the terminal, however if I comment out this line and uncomment the following line, request handling traces do not appear in the file.
How please should it be correctly configured?
Beta Was this translation helpful? Give feedback.
All reactions