Is it possible to use the new http traffic instrument with combines dataTaskPublisher? How can I set a label to the task?
HTTP Traffic Instrument using Combine
Yes, the new HTTP Traffic instrument should also work as expected with tasks created via Combine's dataTaskPublisher
. However, setting a label that is displayed in Instruments is currently only supported via the URLSessionTask
's taskDescription
property. This in turn means there is no good way to set the label for tasks created via Combine. If this would be useful for you, please consider filing a bug report.