Skip to content

Conversation

dingxiangfei2009
Copy link

@dingxiangfei2009 dingxiangfei2009 commented Oct 17, 2025

Motivation

It turns out that the event_enabled is not yet implemented on EnvFilter.

It has created issues that dynamic filters are effectively ignored, when this filter is composed with another layer through with_filter combinator.

Related to rust-lang/rust#147613, which is deployed to mitigate the issue arising from the missing filter predicate. This patch will allow the compiler to use the filter in a more idiomatic way.

Solution

In this event_enabled predicate, we apply the dynamic filters once again per event properly this time in EnvFilter.

It turns out that the `event_enabled` is not yet implemented on
`EnvFilter`.

It has created issues that dynamic filters are effectively ignored,
when this filter is composed with another layer through `with_filter`
combinator.

Related to rust-lang/rust#147613

Signed-off-by: Xiangfei Ding <[email protected]>
@dingxiangfei2009 dingxiangfei2009 requested review from a team and hawkw as code owners October 17, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant