Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subscriber: don't print curly braces on spans with no fields
Previously, when `tracing-subscriber`'s `fmt` module printed span contexts, curly braces were only added around a span's fields. When we replaced the previous implementation with the new `fmt::Layer`, this behavior was lost, and empty curly braces were added to spans without fields. This commit fixes this by putting back the `if` conditional that used to guard the printing of span fields. Signed-off-by: Eliza Weisman <eliza@buoyant.io>
- Loading branch information