If instrumentFetch (or the Cloudflare instrument() helper that
calls it internally) has been used, this returns the original reference
captured before the monkey-patch was applied.
Falls back to globalThis.fetch when no instrumentation has occurred.
// Always hits the network without creating a span: constres = awaitgetOriginalFetch()("https://collector.example.com/v1/traces", { method:"POST", body });
Return the un-instrumented
fetchfunction.If instrumentFetch (or the Cloudflare
instrument()helper that calls it internally) has been used, this returns the original reference captured before the monkey-patch was applied.Falls back to
globalThis.fetchwhen no instrumentation has occurred.