kean / Pulse

Network logger for Apple platforms
https://pulselogger.com
MIT License
6.18k stars 294 forks source link

Feature Request: Custom network log descriptions #251

Closed ejensen closed 3 months ago

ejensen commented 4 months ago

The URL alone is insufficient to identify a network operation in certain scenarios. For example, in the GraphQL API, the URL for every request is identical. However, each GraphQL operation has a name within the request's body that identifies the operation. It would be useful to have the option to specify a custom description in NetworkLogger.Request so operations can be identified without needing to inspect each network entry. The description could default to URLSessionTask.taskDescription

kean commented 3 months ago

Great suggestion, @ejensen!

Implemented in https://github.com/kean/Pulse/pull/254 and shipped in Pulse 4.2