Adjusts the trace's file type based on the entries being filtered out.
Removes the const property for the trace_entry_t argument to parallel_shard_filter, which allows record_filter_func_t to modify the entry.
Tests operation in the record_filter_unit_tests.
Issue: #5675