@tigorhutasuhut/telemetry-js - v0.7.3
    Preparing search index...

    Function getOriginalFetch

    • Return the un-instrumented fetch function.

      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.

      Returns (input: string | URL | Request, init?: RequestInit) => Promise<Response>

      import { getOriginalFetch } from "@tigorhutasuhut/telemetry-js";

      // Always hits the network without creating a span:
      const res = await getOriginalFetch()("https://collector.example.com/v1/traces", { method: "POST", body });