MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / cancel

Function cancel

packages/cloudflare/src/request.ts:164–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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), {

Callers

nothing calls this directly

Calls 1

endSpanOnceFunction · 0.85

Tested by

no test coverage detected