Commit 11bca7d
committed
Instrument HTTP request end-to-end
This commit extends the current span to include the transfer of the
HTTP response body rather than ending it when the headers complete. This
provides a fuller, more accurate picture of the HTTP request.
This is implemented using a `TransformStream` on the HTTP response body
that acts as a pass-through and only calling `span.end()` once the
stream has completed.1 parent effeb54 commit 11bca7d
1 file changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
200 | 214 | | |
201 | 215 | | |
202 | 216 | | |
203 | | - | |
204 | | - | |
205 | 217 | | |
| 218 | + | |
206 | 219 | | |
207 | 220 | | |
208 | 221 | | |
| |||
0 commit comments