Commit 7951701
committed
subscriber: impl Subscribe for FilterFn and DynFilterFn (#1546)
## Motivation
Currently, the `FilterFn` and `DynFilterFn` filters are only usable as
`Filter`s for per-subscriber filtering. However, there's no real reason
they can't _also_ have `Subscribe` implementations, making them usable
as global filters as well.
## Solution
This branch adds `Subscribe` implementations to `FilterFn` and
`DynFilterFn`, and moves them into their own file. It also changes the
feature flagging so that the "registry" feature is only required for the
`Filter` implementations --- the types themselves don't involve any
feature-flagged code, only the `Filter` trait.
Signed-off-by: Eliza Weisman <eliza@buoyant.io>1 parent 4831948 commit 7951701
File tree
3 files changed
+751
-649
lines changed- tracing-subscriber/src/filter
- subscriber_filters
3 files changed
+751
-649
lines changed
0 commit comments