You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by WFT July 14, 2023
Does Sentry support gathering URLSessionTaskTransactionMetrics with its automatic URLSession breadcrumbs/performance tracking? If so, how do I enable it? As far as I can tell the default options don't do it.
It would be helpful to track the performance of our API from the perspective of our end users to know at least:
“secure connection time” AKA tls time
fetchStartDate -> responseStartDate AKA “time to first byte”
URLSessionTaskMetrics provides excellent information for HTTP requests. You can retrieve the metrics via URLSessionTaskDelegate. Swizzling these delegates is a dangerous option we don't want to implement. Instead, we could offer a manual API do set some type of SentryURLSessionTaskDelegate to forward these metrics to the SDK. We still need to figure out how to map the data to our HTTP instrumentation. A proper SentryURLSessionTaskDelegate could fully replace the SentryNetworkTrackingIntegration with swizzling.
The URLSessionTaskMetrics works by using a delegate with something like the following
Discussed in #3150
Originally posted by WFT July 14, 2023
Does Sentry support gathering URLSessionTaskTransactionMetrics with its automatic URLSession breadcrumbs/performance tracking? If so, how do I enable it? As far as I can tell the default options don't do it.
It would be helpful to track the performance of our API from the perspective of our end users to know at least:
URLSessionTaskMetrics provides excellent information for HTTP requests. You can retrieve the metrics via
URLSessionTaskDelegate
. Swizzling these delegates is a dangerous option we don't want to implement. Instead, we could offer a manual API do set some type ofSentryURLSessionTaskDelegate
to forward these metrics to the SDK. We still need to figure out how to map the data to our HTTP instrumentation. A properSentryURLSessionTaskDelegate
could fully replace theSentryNetworkTrackingIntegration
with swizzling.The URLSessionTaskMetrics works by using a delegate with something like the following
The text was updated successfully, but these errors were encountered: