Support for filters in the trace functions