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
// Record/export gc and conn with version as a dimension here.
67
+
}
68
+
returnrsp;
69
+
}
70
+
}
71
+
```
18
72
19
73
### [.NET CLI](#tab/dotnet-cli)
20
74
@@ -96,10 +150,16 @@ Timestamps are recorded for key stages of the HTTP request lifecycle:
96
150
97
151
#### Measures (platform dependent)
98
152
99
-
Measures are numeric values captured during a request that quantify things your timestamp checkpoints alone
100
-
don't show - like how long GC pauses stalled the thread or how often a brand-new connection had to be opened instead of
101
-
reusing a pooled one. Use them when total latency is higher than the sum of visible phases, when investigating memory
102
-
pressure or connection churn, or when tuning pooling and allocation patterns.
153
+
Measures quantify latency contributors that raw phase checkpoints cannot (GC pause overlap, connection churn, other
154
+
accumulated counts or durations). They are collected in an in‑memory latency context created when you call
155
+
`AddHttpClientLatencyTelemetry()`. Nothing is emitted automatically: the context simply accumulates checkpoints, measures,
156
+
and tags until the request completes. If you also enable HTTP client logging enrichment with `AddExtendedHttpClientLogging()`,
157
+
the completed context is flattened into a single structured log field named `LatencyInfo` (version marker, server name if available, then tag, checkpoint, and measure name/value sequences).
158
+
159
+
That log field is the only built‑in output artifact; no metrics or traces are produced unless you add your own exporter.
160
+
To surface them as metrics, read the context after the request pipeline returns and record (for example) GC pause overlap
161
+
to a histogram and connection initiations to a counter, optionally dimensioned by protocol version.
0 commit comments