()
| 162 | endSpanOnce(); |
| 163 | }, |
| 164 | cancel() { |
| 165 | // Client disconnected (or downstream cancelled). The `cancel` |
| 166 | // is being called while the response is still considered |
| 167 | // active, so this is a safe place to end the span. |
| 168 | endSpanOnce(); |
| 169 | }, |
| 170 | }); |
| 171 | |
| 172 | return new Response(res.body.pipeThrough(transform), { |
nothing calls this directly
no test coverage detected