You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The behavior does not match my expectations when using default settings compared to filtering only by target. By default, span information is included, but when filtering by target, the span information is missing. I am using actix-web, and this span is automatically added by TracingLog. I can't understand why this happens. My expectation is that filtering by target, or filtering by any criteria, should retain all information just like when no filtering is applied.
If I use default filter
like that
let filter = filter::Targets::new().with_default(level_filter);print("{:?}",filter)let app_json_layer = FmtLayer::new().json().with_writer(app_file_appender).with_filter(filter);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The behavior does not match my expectations when using default settings compared to filtering only by target. By default, span information is included, but when filtering by target, the span information is missing. I am using actix-web, and this span is automatically added by TracingLog. I can't understand why this happens. My expectation is that filtering by target, or filtering by any criteria, should retain all information just like when no filtering is applied.
If I use default filter
like that
output
log file output:
but,if i use filter by target
output
log file
What's wrong with my use?
Beta Was this translation helpful? Give feedback.
All reactions