Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…kio-rs#2018) ## Motivation Currently, the `Filtered` type's `Layer` impl accidentally calls the inner `Filter`'s `on_enter` hook in the `on_exit` hook. This is...obviously wrong, lol, and means that filters like `EnvFilter` will never consider spans to have exited, breaking filtering behavior. @tfreiberg-fastly originally noticed this bug (see tokio-rs#1983 (comment)), but I wanted to make the change separately from PR tokio-rs#1983 so that we can fix it on the main branch without waiting for tokio-rs#1983 to merge first. ## Solution This branch, uh, you know... fixes that.
- Loading branch information