> ## Documentation Index
> Fetch the complete documentation index at: https://docs.basset.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# urlSession.taskMetrics

> What a URLSession request actually did on the wire

A delegate proxy inserted ahead of the app's own `URLSessionTaskDelegate`. A
reading each time a task's metrics are collected.

| | |
| - | - |
| [Delivery](/instruments/metadata) | stream, onChange |
| Mechanism | delegateProxy |
| [Requires](/instruments/metadata) | iOS 17+, basset 0.1.1+ |

Real output from `basset request get`, captured from a real request to
`basset.dev`:

```
CAPTURED                  ELAPSED  INSTRUMENT

launch 7674801150138226559
2026-08-23T14:42:54.563Z  +0.0s    network.urlSession.taskMetrics(networkTask)
└─ mechanismStatus      Diagnostics.NetworkProbeExercise: didFinishCollecting installed, didCompleteWithError implemented
2026-08-23T14:42:54.761Z  +0.2s    network.urlSession.taskMetrics(networkTask)
├─ instanceId           1
├─ detail               taskDelegate
├─ requestURL           https://basset.dev
├─ totalNanoseconds     195695996
├─ httpStatusCode       200
├─ negotiatedProtocol   h3
├─ connectionReused     true
├─ serverNanoseconds    93191981
├─ responseNanoseconds  26728987
├─ tlsVersion           TLS 1.3
├─ tlsCipherSuite       0x1302
├─ interfaceKind        other
├─ remoteAddress        104.21.80.210
├─ dnsProtocol          udp
└─ bytesReceivedCount   9570
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.