Aggregation logic for aggregating trace data before sending it to Concurix