Added API method to set the task ID of an xtrace event without havnig to add edges