I'm adding an exception filter to log errors to some endpoints, so that i dont want/cannot use global filters. the said exception filter will push to a collection in db, so i'd like to leverage a service class for this (with a mongoose model).
all i can find online is to use the APP_FILTER core provider token, but the issue is that it'll make my filter global and i really dont want that.
as a workaround i can create my own decorator which will set a certain metadata and have the filter globally registered to leverage this metadata to act or not, but it is a workaround so i'd like to ask: how to solve my usecase properly?